Triggering pipelines with Artifactory
This guide explains how to add a JFrog Artifactory trigger to your pipeline.
Currently, the Artifactory trigger only works with Maven artifacts.
Prerequisites
- Configure artifactory. Add the following to
igor-local.ymlfor triggering/monitoring of repos:
artifactory:
enabled: true
searches:
- name: dev
username: user
password: password
accessToken: accessToken
More configuration properties are available in the ArtifactorySearch class.
- A Maven account configured in Spinnaker
clouddriver-local.yml(used for pulling a file from maven):
artifacts:
maven:
enabled: true
accounts:
- name: maven-central
repositoryUrl: https://repo1.maven.org/maven2/
Configuration properties are available in the MavenArtifactAccount . Maven artifacts do not support a lot of features at this time. For additional options, please open PRs to add additional capabilities.
- Artifact support enabled .
Adding an Artifactory Trigger
-
Create a pipeline.
-
In the Configuration stage of your new pipeline, add a trigger.
-
In the Type menu, select Artifactory. This brings up the following screen:

-
In the Artifactory Name menu, select an Artifactory search.
-
In the Artifact Constraints menu, select “Define a new artifact. This brings up the following screen:

-
Enter a name in the Display Name field or leave the autogenerated default.
-
In the Account menu, select a Maven account.
-
In the Maven Coordinate field, enter the Maven coordinates of the artifact.
-
Click Save Artifact.