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

Expand shelf ${VAR} failed if VAR is 'change'

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None

      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}.

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

          There are no comments yet on this issue.

            Unassigned Unassigned
            bingshiao Bing Shiao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: