Triggering pipelines with Artifactory

Add a JFrog Artifactory trigger to your pipeline.

This guide explains how to add a JFrog Artifactory trigger to your pipeline.

Currently, the Artifactory trigger only works with Maven artifacts.

Prerequisites

  1. Configure artifactory. Add the following to igor-local.yml for 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.

  1. 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.

Adding an Artifactory Trigger

  1. Create a pipeline.

  2. In the Configuration stage of your new pipeline, add a trigger.

  3. In the Type menu, select Artifactory. This brings up the following screen:

  4. In the Artifactory Name menu, select an Artifactory search.

  5. In the Artifact Constraints menu, select “Define a new artifact. This brings up the following screen:

  6. Enter a name in the Display Name field or leave the autogenerated default.

  7. In the Account menu, select a Maven account.

  8. In the Maven Coordinate field, enter the Maven coordinates of the artifact.

  9. Click Save Artifact.