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

[Git][Parameterized Trigger] 'Pass-through Git commit' does not include repo URI and breaks pipeline build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins 2.277.3
      git-plugin 4.7.1
      parameterized-trigger 2.40

      Consider the following situation:

      • job1 (classical freestyle)
        • build
        • post
          • Trigger parameterized build on other projects
            • job2 
            • [x] Pass-through Git Commit that was built
      • job2 (pipeline):

      This constellation will fail to build, because the commit-ID passed-through from build of job1 is being used to fetch the pipeline of job2 and also (if it would get so far) would be used for the step2 of the pipeline, but it should only apply to step1.

      The technical issue is that in

      hudson.plugins.git.GitRevisionBuildParameters

      no repoURL is passed to the constructor of

      hudson.plugins.git.RevisionParameterAction.

      That one then, in canOriginateFrom() always returns true and uses the revision ID for all git repos involved in the pipeline.

            Unassigned Unassigned
            sratz Sebastian Ratz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: