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

Use last successful build as fallback when upstream triggered build is started on its own

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Artifacts are copied from project A to project B with the "Upstream build that triggered this build" option.
      When project A triggers project B everything works fine.
      When project B is started manually, the build fails, because it can't find the triggering build.

      There should be an option to use the last successful build as fallback in this case.

        Attachments

          Activity

          Hide
          fredg Fred G added a comment -
          Show
          fredg Fred G added a comment - Open a pull request: https://github.com/jenkinsci/copyartifact-plugin/pull/2
          Hide
          fredg Fred G added a comment -

          Please review my pull request.

          Show
          fredg Fred G added a comment - Please review my pull request.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Fred G
          Path:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/3e67bac32dc39bd9837c695804a3089e30a1e8d2
          Log:
          Fix for JENKINS-10225 Use last successful build as fallback when
          upstream triggered build is started on its own.
          Added test for fallback.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Fred G Path: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/3e67bac32dc39bd9837c695804a3089e30a1e8d2 Log: Fix for JENKINS-10225 Use last successful build as fallback when upstream triggered build is started on its own. Added test for fallback.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Alan Harder
          Path:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly
          src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/8f487c347f28fd49d3275b9cba2ff94840c08a39
          Log:
          Merge pull request #2 from fredg02/master

          Fix for JENKINS-10225, add a fallback for upstream-build selector to use last successful build when not triggered by an upstream job.

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/50722ae...8f487c3

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alan Harder Path: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java http://jenkins-ci.org/commit/copyartifact-plugin/8f487c347f28fd49d3275b9cba2ff94840c08a39 Log: Merge pull request #2 from fredg02/master Fix for JENKINS-10225 , add a fallback for upstream-build selector to use last successful build when not triggered by an upstream job. Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/50722ae...8f487c3
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_copyartifact #50
          Fix for JENKINS-10225 Use last successful build as fallback when

          Fred G : 3e67bac32dc39bd9837c695804a3089e30a1e8d2
          Files :

          • src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java
          • src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly
          • src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_copyartifact #50 Fix for JENKINS-10225 Use last successful build as fallback when Fred G : 3e67bac32dc39bd9837c695804a3089e30a1e8d2 Files : src/test/java/hudson/plugins/copyartifact/CopyArtifactTest.java src/main/resources/hudson/plugins/copyartifact/TriggeredBuildSelector/config.jelly src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              fredg Fred G
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: