[JIRA] (JENKINS-38155) Expand shelf ${VAR} failed if VAR is 'change'

0 views
Skip to first unread message

bingshiao@gmail.com (JIRA)

unread,
Sep 13, 2016, 1:58:01 AM9/13/16
to jenkinsc...@googlegroups.com
Bing Shiao created an issue
 
Jenkins / Bug JENKINS-38155
Expand shelf ${VAR} failed if VAR is 'change'
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2016/Sep/13 5:57 AM
Priority: Minor Minor
Reporter: Bing Shiao

Using $

{change}

for Perforce Unshelve build step failed with the following error:

FATAL: For input string: "change"
java.lang.NumberFormatException: For input string: "change"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.jenkinsci.plugins.p4.unshelve.UnshelveBuilder.unshelve(UnshelveBuilder.java:91)
at org.jenkinsci.plugins.p4.unshelve.UnshelveBuilder.perform(UnshelveBuilder.java:65)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
at hudson.model.Run.execute(Run.java:1759)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)

Using other variable name works fine; for example, $

{changelist}

.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

bingshiao@gmail.com (JIRA)

unread,
Sep 13, 2016, 1:59:01 AM9/13/16
to jenkinsc...@googlegroups.com
Bing Shiao updated an issue
Change By: Bing Shiao
Using {{ ${change} }} for Perforce Unshelve build step failed with the following error:


{quote}
FATAL: For input string: "change"

java.lang.NumberFormatException: For input string: "change"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.jenkinsci.plugins.p4.unshelve.UnshelveBuilder.unshelve(UnshelveBuilder.java:91)
at org.jenkinsci.plugins.p4.unshelve.UnshelveBuilder.perform(UnshelveBuilder.java:65)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
at hudson.model.Run.execute(Run.java:1759)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240) {quote}


Using other variable name works fine; for example,
{{ ${changelist} }} .

bingshiao@gmail.com (JIRA)

unread,
Sep 13, 2016, 2:00:02 AM9/13/16
to jenkinsc...@googlegroups.com

bingshiao@gmail.com (JIRA)

unread,
Sep 13, 2016, 2:00:02 AM9/13/16
to jenkinsc...@googlegroups.com

bingshiao@gmail.com (JIRA)

unread,
Sep 13, 2016, 2:00:03 AM9/13/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages