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

Parameter is not interpreted in GIT Plugin - Branch Specifier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
    • Environment:
      Git-Plugin: 4.2.2
    • Similar Issues:

      Description

      I have a pipeline with one branch to be build, it's a parameterized pipeline:

      Parameter BuildTag is not used by branch specifier.

      refs/tags/${BuildTag}

       

      hudson.plugins.git.GitException: Command "git fetch --tags --progress --prune -- origin +refs/tags/${BuildTag}:refs/remotes/origin/${BuildTag}" returned status code 128:
      stdout: 
      stderr: fatal: Couldn't find remote ref refs/tags/${BuildTag}
      fatal: the remote end hung up unexpectedly	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2430)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2044)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:81)
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:569)
      	at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:361)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197)
      	at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:115)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:69)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:427)
      Finished: FAILURE
      

      It worked with Git Plugin 4.1.1 and when I restore the plugin to this version it starts to work again!

      Regards Alex

        Attachments

          Issue Links

            Activity

            alexz707 Alex Z created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61554 [ JENKINS-61554 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61557 [ JENKINS-61557 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61558 [ JENKINS-61558 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61568 [ JENKINS-61568 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61545 [ JENKINS-61545 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-61546 [ JENKINS-61546 ]
            olblak Olivier Vernin made changes -
            Assignee Mark Waite [ markewaite ] Olivier Vernin [ olblak ]
            olblak Olivier Vernin made changes -
            Assignee Olivier Vernin [ olblak ] Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Component/s ci.jenkins.io [ 23924 ]
            Component/s git-plugin [ 15543 ]
            Key JENKINS-61550 INFRA-2588
            Workflow JNJira + In-Review [ 242648 ] classic default workflow [ 243322 ]
            Project Jenkins [ 10172 ] Infrastructure [ 10301 ]
            markewaite Mark Waite made changes -
            Component/s git-plugin [ 15543 ]
            Component/s ci.jenkins.io [ 23924 ]
            Key INFRA-2588 JENKINS-62019
            Workflow classic default workflow [ 243322 ] JNJira + In-Review [ 243323 ]
            Project Infrastructure [ 10301 ] Jenkins [ 10172 ]
            jetersen Joseph Petersen made changes -
            Link This issue is blocked by JENKINS-48431 [ JENKINS-48431 ]
            amidar Amit Dar made changes -
            Attachment image-2021-01-13-21-16-40-957.png [ 53821 ]
            amidar Amit Dar made changes -
            Attachment image-2021-01-13-21-18-23-168.png [ 53822 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              alexz707 Alex Z
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: