[JIRA] (JENKINS-49834) Variable at branch name do not eval

4 views
Skip to first unread message

info@whitediver.com (JIRA)

unread,
Mar 2, 2018, 3:03:06 AM3/2/18
to jenkinsc...@googlegroups.com
Sergey Arbuzov created an issue
 
Jenkins / Bug JENKINS-49834
Variable at branch name do not eval
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: report.png
Components: git-plugin, pipeline
Created: 2018-03-02 08:02
Environment: JENKINS_VERSION 2.105
Priority: Major Major
Reporter: Sergey Arbuzov

I use variable to select a branch which will be built.

I can have different pipelines at different branches and I do not want to create several builds on each branch.

Then I do it I see that the variable does not evaluate.
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/${BUILD_BRANCH}:refs/remotes/origin/${BUILD_BRANCH} --prune" returned status code 128:
stdout:
stderr: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
fatal: Couldn't find remote ref refs/heads/${BUILD_BRANCH}
fatal: The remote end hung up unexpectedly

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1715)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:351)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:107)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 2, 2018, 8:50:02 AM3/2/18
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Mar 2, 2018, 8:50:02 AM3/2/18
to jenkinsc...@googlegroups.com
Mark Waite resolved as Duplicate
Change By: Mark Waite
Status: Open Resolved
Resolution: Duplicate

giftigiftzwerg@web.de (JIRA)

unread,
Sep 26, 2019, 10:38:02 AM9/26/19
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:32:11 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Duplicate
 
Change By: Mark Waite
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages