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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: git-plugin
    • Environment:
      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.

            Assignee:
            Unassigned
            Reporter:
            Sebastian Ratz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: