Can I trigger a Jenkins job using a Maven dependency? Can I trigger a Jenkins job using a Maven dependency? jenkins jenkins

Can I trigger a Jenkins job using a Maven dependency?


Yes there is.

  1. you need to set up the jobs as Maven Job

enter image description here

  1. In Job A select the checkbox: Build whenever a snapshot dependency is build.

enter image description here

Apparently this only works, if the dependency is a snapshot dependency.


Another option is to use the Maven Dependency Update trigger plugin. This is if you use a freestyle job instead of a Maven job type.