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

Artifacts deployed by deploy-file goal don't trigger downstream builds

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • pipeline-maven-plugin
    • pipeline-maven-3.11.0

    Description

      When artifacts get deployed by direct plugin invocation of the deploy:deploy-file goal the artifacts get recognized by the maven-spy but wont trigger downstream dependencies of deployed artifacts.

      This is because direct plugin invocation effectively skips the maven lifecycle. With no lifecycle known, the lifecycleThreshold is never met and downstream dependencies never get triggered.

      I have tried to fix this by creating a new ExecutionHandler for the JenkinsMavenEventSpy wich checks if the MojoExecution of the goal org.apache.maven.plugins:maven-deploy-plugin:deploy-file contains a lifecycle. When no lifecycle is present it assumes the deploy-Lifecycle.

      With this is place downstream-Dependencies get triggered even when the artifacts get deployed by the deploy:deploy-file goal directly.

      I've submitted a Pull-Request with my changes.

       

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              bguerin Benoit
              schleuse René Schleusner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: