title: Declarative Jenkisfile trigger downstream pipeline when dependency is built
body: <p>Is there any way to use the trigger downstream pipeline function when a dependency is built from the Pipeline Maven Integration <a href="https://plugins.jenkins.io/pipeline-maven" rel="nofollow noreferrer">plugin</a> in a declarative Jenkisfile? </p>
  
  <p>There is a promising TODO on the Jenkis plugin site. </p>
  
  <blockquote>
    <p>Using "withMaven" with "docker.image(...).inside{...}" to a Jenkins Declarative Pipeline </p>
    
    <p>TODO provide a sample with Jenkins Declarative Pipeline</p>
  </blockquote>
  
  <p>Has anybody done that yet? </p>
  
  <p>In my use case, I would like to trigger all downstream pipelines when a snapshot is built without using the GUI (I would prefer an infrastructure as code approach).</p>