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

Parameter is not interpreted in GIT Plugin - Branch Specifier

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • git-plugin
    • None
    • Git Plugin 4.2.2

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

      refs/tags/${BuildTag}

      The BuildTag gets not interpreted anymore:

      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

          [JENKINS-62020] Parameter is not interpreted in GIT Plugin - Branch Specifier

          Alex Z created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Link New: This issue duplicates JENKINS-61550 [ JENKINS-61550 ]
          Mark Waite made changes -
          Component/s New: ci.jenkins.io [ 23924 ]
          Component/s Original: git-plugin [ 15543 ]
          Key Original: JENKINS-61557 New: INFRA-2589
          Workflow Original: JNJira + In-Review [ 242655 ] New: classic default workflow [ 243324 ]
          Project Original: Jenkins [ 10172 ] New: Infrastructure [ 10301 ]
          Mark Waite made changes -
          Component/s New: git-plugin [ 15543 ]
          Component/s Original: ci.jenkins.io [ 23924 ]
          Key Original: INFRA-2589 New: JENKINS-62020
          Workflow Original: classic default workflow [ 243324 ] New: JNJira + In-Review [ 243325 ]
          Project Original: Infrastructure [ 10301 ] New: Jenkins [ 10172 ]
          Mark Waite made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            Unassigned Unassigned
            alexz707 Alex Z
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: