Issue Type: Bug Bug
Affects Versions: current
Assignee: Alan Harder
Components: copyartifact
Created: 30/Jun/12 6:35 AM
Description:

I set up an optional copy artifact step for a specific build, which is determined by a build parameter (e.g. $SOURCE_BUILD_NO).

The expectation was to leave the parameter empty if I didn't want to copy anything, as it couldn't have copied anything, and move on, just like when entering a build number for a non-existing build.

That resulted in a build failure.

FATAL: For input string: "$SOURCE_BUILD_NO"
java.lang.NumberFormatException: For input string: "$SOURCE_BUILD_NO"

Workarounds:

  • Entering the build number of a non-existing build or build without artifacts, e.g. -5.
  • Using conditional build step plugin.
Environment: Copy Artifact 1.20 (because of JENKINS-12412) on Jenkins 1.447.2 on Windows Server 2008 R2
Copy Artifact 1.22 on Jenkins 1.447.2 on Debian 6.0.4 (just to reproduce this issue)
Project: Jenkins
Priority: Major Major
Reporter: Daniel Beck
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to