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

Ability to Copy Artifacts from a Phase Job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have MultiJob Projects setup in which we do a build in the first phase and test in the second phase. We want to grab the artifact from the first phase as part of the current MultiJob Build in the second phase as well as at the end of the MultiJob itself. It would be great if MultiJob Plugin could add support for this as Copy Artifact Plugin prefers this code to live in MultiJob Plugin as its specific for it.

        Attachments

          Issue Links

            Activity

            Hide
            osechet Olivier Sechet added a comment -

            I created a Pull Request to fix the problem with folders: https://github.com/jenkinsci/tikal-multijob-plugin/pull/74

            Show
            osechet Olivier Sechet added a comment - I created a Pull Request to fix the problem with folders: https://github.com/jenkinsci/tikal-multijob-plugin/pull/74
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: osechet
            Path:
            src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java
            http://jenkins-ci.org/commit/tikal-multijob-plugin/f326c2f74b232e07c891dc2a9e5382c6c0befebb
            Log:
            Fix problem when using folders

            As mentioned in a comment of the JENKINS-25111 issue, the Multijob build selector does not work when using folders. The problem is due to the use of getFullDisplayName() instead of getDisplayName() when looking for a sub build. getFullDisplayName() includes the parent names whereas sub build's job name contains only the job name. It's the reason the check couldn't find a match.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: osechet Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java http://jenkins-ci.org/commit/tikal-multijob-plugin/f326c2f74b232e07c891dc2a9e5382c6c0befebb Log: Fix problem when using folders As mentioned in a comment of the JENKINS-25111 issue, the Multijob build selector does not work when using folders. The problem is due to the use of getFullDisplayName() instead of getDisplayName() when looking for a sub build. getFullDisplayName() includes the parent names whereas sub build's job name contains only the job name. It's the reason the check couldn't find a match.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Shachar Ben-Zeev
            Path:
            src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java
            http://jenkins-ci.org/commit/tikal-multijob-plugin/93a4453f1c253ddf602a695b992a2a3886e5a0ff
            Log:
            Merge pull request #74 from osechet/JENKINS-25111-folders

            JENKINS-25111 Fix problem in MultijobBuildSelector when using folders

            Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/bf52cc2b1f62...93a4453f1c25

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Shachar Ben-Zeev Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuildSelector.java http://jenkins-ci.org/commit/tikal-multijob-plugin/93a4453f1c253ddf602a695b992a2a3886e5a0ff Log: Merge pull request #74 from osechet/ JENKINS-25111 -folders JENKINS-25111 Fix problem in MultijobBuildSelector when using folders Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/bf52cc2b1f62...93a4453f1c25
            Hide
            geoffroyjabouley Geoffroy Jabouley added a comment - - edited

            Hi

            will this feature support multijob of multijob?

            Lets say i have the following job organization:

            multiJobA
            |--> PhaseA1
            |------> jobA1
            |--> PhaseA2 
            |------> multijobB
                     |--> PhaseB1
                     |--------> jobB1
            

            I need to retrieve an artefact from jobA1 in jobB1.
            We currently pass the JOBA1_BUILD_NUMBER variable as parameter of MultijobB.

            Any change to use this new functionality with our use case?

            Show
            geoffroyjabouley Geoffroy Jabouley added a comment - - edited Hi will this feature support multijob of multijob? Lets say i have the following job organization: multiJobA |--> PhaseA1 |------> jobA1 |--> PhaseA2 |------> multijobB |--> PhaseB1 |--------> jobB1 I need to retrieve an artefact from jobA1 in jobB1. We currently pass the JOBA1_BUILD_NUMBER variable as parameter of MultijobB. Any change to use this new functionality with our use case?
            Hide
            yorammi Yoram Michaeli added a comment -

            Closing issue as part of tikal-multijob-plugin issues cleanup.
            If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

            Show
            yorammi Yoram Michaeli added a comment - Closing issue as part of tikal-multijob-plugin issues cleanup. If still relevant, please open a matching issue in https://github.com/jenkinsci/tikal-multijob-plugin/issues (you can refer to this issue in its description)

              People

              • Assignee:
                rsennewald Ray Sennewald
                Reporter:
                rsennewald Ray Sennewald
              • Votes:
                5 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: