Using BuildSelector to give a specific build number the CopyArtifact plugin step works fine.
In a later step we run an ant script to deploy the artifacts in deploy job workspace now.
The Ant generated parameter that appears to cause problem is "-DTARGET_BUILD=<SpecificBuildSelector plugin=""email@example.com""> <buildNumber>66</buildNumber></SpecificBuildSelector>"
When runs gets error
Target "<buildNumber>66</buildNumber></SpecificBuildSelector> -DBUILD_USER=xxxx" does not exist in the project
This prevents running deploy job.
The same deploy job running on Jenkins 1.476 and CopyArtifact plugin 1.29 and Ant 1.1 works.
We are attempting to upgrade to a newer version of Jenkins and all the newer version use ant 1.2.