nexus.PublishedArtifact

Triggers release when new version of artifact is published to Sonatype Nexus repository

Type hierarchy: nexus.PublishedArtifact > xlrelease.ReleaseTrigger > xlrelease.BasePythonScript > udm.BaseConfigurationItem
Label: Nexus: Published Artifact

Properties

Property Kind Description
triggerState String Trigger State
initialFire Boolean Set this property to true to trigger a new release on the initial trigger fire. Otherwise, the first release will be triggered on the next state change
title String Symbolic name for the trigger
description String The description of the trigger.
releaseTitle String Name given to releases created by this trigger. This field can contain variables
pollType Enum Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression
periodicity String Interval in seconds (REPEAT) or as a cron expression (CRON). The cron pattern is a list of six fields separated by a single space; these fields represent second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of their English names. For example: 0 0 * * * * = the top of every hour of every day; */10 * * * * * = every ten seconds; 0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays
enabled Boolean Enabled
executionId String Execution Id
variables List of xlrelease.Variable (contained) Variables
template xlrelease.Release (parent) Template
tags List of string Tags
groupId String Group ID of the artifact
artifactId String Artifact ID of the artifact
version String Version of the artifact, supports resolving of ‘LATEST’(default), ‘RELEASE’ and snapshot versions (e.g. ‘1.0-SNAPSHOT’). Specify ‘LATEST’ to trigger on both, release and snapshot versions of a particular artifact. With ‘RELEASE’ only release versions will be tracked. Triggering on release version re-deployments (e.g. 1.0.0) is not supported
server nexus.Server Sonatype Nexus server to poll
repositoryId String Repository ID to watch, e.g. releases, snapshots, apache-snapshots
username String Custom username to override global server configuration
password Password Custom password to override global server configuration
packaging String Packaging type of the artifact (e.g. ‘jar’, ‘war’) not applicable to nexus version 3
classifier String Classifier of the artifact
extension String Extension of the artifact
triggerOnInitialPublish Boolean Should suppress error when artifact not found for the given GAV coordinates. Set this to true when artifact was never published to Nexus and you want to trigger a release on the initial publish. Default value is ‘false’
artifactVersion String Latest artifact version. For Snapshots the version includes timestamp and build number
artifactBaseVersion String Latest base artifact version. For Releases same as ‘artifactVersion’, for Snapshots base version (i.e. 1.0-SNAPSHOT) without additional qualifiers
artifactSnapshotBuildNumber String Latest artifact snapshot build number
artifactRepositoryPath String Artifact path relative to the selected Nexus repository
artifactDownloadUrl String Artifact download URL

triggerState

Trigger State

initialFire

Set this property to true to trigger a new release on the initial trigger fire. Otherwise, the first release will be triggered on the next state change

title

Symbolic name for the trigger

description

The description of the trigger.

releaseTitle

Name given to releases created by this trigger. This field can contain variables

pollType

Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression

periodicity

Interval in seconds (REPEAT) or as a cron expression (CRON). The cron pattern is a list of six fields separated by a single space; these fields represent second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of their English names. For example: 0 0 * * * * = the top of every hour of every day; */10 * * * * * = every ten seconds; 0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays

enabled

Enabled

executionId

Execution Id

variables

Variables

template

Template

tags

Tags

groupId

Group ID of the artifact

artifactId

Artifact ID of the artifact

version

Version of the artifact, supports resolving of ‘LATEST’(default), ‘RELEASE’ and snapshot versions (e.g. ‘1.0-SNAPSHOT’). Specify ‘LATEST’ to trigger on both, release and snapshot versions of a particular artifact. With ‘RELEASE’ only release versions will be tracked. Triggering on release version re-deployments (e.g. 1.0.0) is not supported

server

Sonatype Nexus server to poll

repositoryId

Repository ID to watch, e.g. releases, snapshots, apache-snapshots

username

Custom username to override global server configuration

password

Custom password to override global server configuration

packaging

Packaging type of the artifact (e.g. ‘jar’, ‘war’) not applicable to nexus version 3

classifier

Classifier of the artifact

extension

Extension of the artifact

triggerOnInitialPublish

Should suppress error when artifact not found for the given GAV coordinates. Set this to true when artifact was never published to Nexus and you want to trigger a release on the initial publish. Default value is ‘false’

artifactVersion

Latest artifact version. For Snapshots the version includes timestamp and build number

artifactBaseVersion

Latest base artifact version. For Releases same as ‘artifactVersion’, for Snapshots base version (i.e. 1.0-SNAPSHOT) without additional qualifiers

artifactSnapshotBuildNumber

Latest artifact snapshot build number

artifactRepositoryPath

Artifact path relative to the selected Nexus repository

artifactDownloadUrl

Artifact download URL

Hidden properties

Property Kind Description
scriptLocation String Script Location

scriptLocation

Script Location