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
- Label: Trigger State
- Kind: String
- Default value:
- Required: false
- Category: hidden
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
- Label: Initial Fire
- Kind: Boolean
- Default value: false
- Required: false
- Category: hidden
title
Symbolic name for the trigger
- Label: Title
- Kind: String
- Required: true
description
The description of the trigger.
- Label: Description
- Kind: String
- Size: LARGE
- Required: false
releaseTitle
Name given to releases created by this trigger. This field can contain variables
- Label: Release Title
- Kind: String
- Required: true
pollType
Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression
- Label: Poll Type
- Kind: Enum
- Allowed values: REPEAT, CRON
- Default value: REPEAT
- Required: true
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
- Label: Poll Interval
- Kind: String
- Default value: 10
- Required: true
enabled
Enabled
- Label: Enabled
- Kind: Boolean
- Default value: true
- Required: false
executionId
Execution Id
- Label: Execution Id
- Kind: String
- Required: false
- Category: hidden
variables
Variables
- Label: Variables
- Kind: List of xlrelease.Variable (contained)
- Required: false
- Category: hidden
- Reference type: xlrelease.Variable
- As containment: true
template
Template
- Label: Template
- Kind: xlrelease.Release (parent)
- Required: false
- Category: hidden
- Reference type: xlrelease.Release
- As containment: true
tags
Tags
- Label: Tags
- Kind: List of string
- Required: false
- Category: hidden
groupId
Group ID of the artifact
- Label: Group Id
- Kind: String
- Required: true
artifactId
Artifact ID of the artifact
- Label: Artifact Id
- Kind: String
- Required: true
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
- Label: Version
- Kind: String
- Default value: LATEST
- Required: true
server
Sonatype Nexus server to poll
- Label: Server
- Kind: nexus.Server
- Required: true
- Category: Repository
- Reference type: nexus.Server
repositoryId
Repository ID to watch, e.g. releases, snapshots, apache-snapshots
- Label: Repository Id
- Kind: String
- Required: true
- Category: Repository
username
Custom username to override global server configuration
- Label: Username
- Kind: String
- Default value:
- Required: false
- Category: Repository
password
Custom password to override global server configuration
- Label: Password
- Kind: Password
- Default value:
- Password: true
- Required: false
- Category: Repository
packaging
Packaging type of the artifact (e.g. ‘jar’, ‘war’) not applicable to nexus version 3
- Label: Packaging
- Kind: String
- Required: false
- Category: Options
classifier
Classifier of the artifact
- Label: Classifier
- Kind: String
- Required: false
- Category: Options
extension
Extension of the artifact
- Label: Extension
- Kind: String
- Required: false
- Category: Options
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’
- Label: Trigger On Initial Publish
- Kind: Boolean
- Default value: false
- Required: false
- Category: Options
artifactVersion
Latest artifact version. For Snapshots the version includes timestamp and build number
- Label: Artifact Version
- Kind: String
- Required: false
- Category: variables
artifactBaseVersion
Latest base artifact version. For Releases same as ‘artifactVersion’, for Snapshots base version (i.e. 1.0-SNAPSHOT) without additional qualifiers
- Label: Artifact Base Version
- Kind: String
- Required: false
- Category: variables
artifactSnapshotBuildNumber
Latest artifact snapshot build number
- Label: Artifact Snapshot Build Number
- Kind: String
- Required: false
- Category: variables
artifactRepositoryPath
Artifact path relative to the selected Nexus repository
- Label: Artifact Repository Path
- Kind: String
- Required: false
- Category: variables
artifactDownloadUrl
Artifact download URL
- Label: Artifact Download Url
- Kind: String
- Required: false
- Category: variables
Hidden properties
Property | Kind | Description |
---|---|---|
scriptLocation | String | Script Location |
scriptLocation
Script Location
- Key:
nexus.PublishedArtifact.scriptLocation
- Kind: String
- Default value:
- Hidden: true