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

Provide link or variable to dependent triggered job

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • gerrit-trigger-plugin
    • None

      2.12 added the "Other jobs on which this job depends" feature. The triggering works well. But our dependent job also needs files from the upstream/producer job. Copying those can be done with the copy-artifact plugin. But for it to be able to copy it from the correct job it needs to know the job number of the upstream/producer job. Thus it would be nice if the gerrit-trigger-plugin would provide a variable or permalink which contained the job(id) of the upstream job. Given that there could be multiple upstream jobs this variable could be called GERRIT_UPSTREAM_

      {upstream-job-name}

      . If instead of a variable this information is provided by a link, the link would need to contain the change-id, patcheset-revision or refspec so that one could get the job id as a function of either of those informations. I tried to look whether there is already some remote API like this but I could find whether anything like this is already there. Sorry if I missed it.

            rsandell rsandell
            rschulz Roland Schulz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: