Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(info) It is not possible to disable this warning message

My downstream pipelines don't get triggered even if I use "Build whenever a SNAPSHOT dependency is built"

A common reason why downstream pipelines don't get triggered when using "Build whenever a SNAPSHOT dependency is built" is that the upstream pipeline is using "mvn install" when the Jenkins Pipeline Maven integration is configured to trigger pipelines on "mvn deploy".

To configure the Jenkins Pipeline Maven integration to trigger downstream pipelines on "mvn install":

  • Either change the default configuration:
    • Navigate to "Manage Jenkins / Global Tools Configuration"
    • Click on "Add Publisher" and select "Pipeline Graph Publisher"
    • In the section "Downstream Pipeline Triggers", change the the "Maven lifecycle threshold" from "deploy" to "install"

Image Added

  • Or in the script of the upstream pipeline, configure "withMaven(options: [pipelineGraphPublisher(lifecycleThreshold: 'install')]) {...}"


How can I troubleshoot problems of trigger of downstream pipelines

...