Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46511

Threshold to trigger downstream pipelines only if a Maven lifecycle phase has been executed (deploy or install or package)

XMLWordPrintable

      Add a threshold to only trigger downstream pipelines if the generated artifact has been deployed ("mvn deploy") or if has at least been installed ("mvn install" or "mvn deploy") or if it has been at least packaged ("mvn package" or "mvn verify" or "mvn install" or "mvn deploy").

      In many cases, if a generated maven artifact has just been packaged (mvn package) or installed locally (mvn install), then we don't want to trigger downstream pipelines that have a maven dependency on this generated artifact.

      Solution implemented

      Add a Maven Lifecycle Phase threshold to trigger downstream pipelines ("package", "install", "deploy"). By default, withMaven will only trigger if the "deploy" lifecycle phase has been reached.

            cleclerc Cyrille Le Clerc
            cleclerc Cyrille Le Clerc
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: