-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have.
Parameter Name: "BuildDate" (I tried using %% and ${} but no luck)
Windows batch command:
copy \Network_drive\dir1\dir2\dir3%BuildDate%\filename*.zip .
Output from jenkins console:
c:\jenkins\workspace\my_build_job_name>copy
Shared_Network_drive\dir1\dir2\dir3\ \filename.zip .
Shared_Network_drive\dir1\dir2\dir3\ \filename.zip The system cannot find the path specified. 0 file(s) copied.
c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE
Any help? Thanks
[JENKINS-37428] parameterized plugin getting replaced by a white space
Description |
Original:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3\filename*.zip . \Network_drive\dir1\dir2\dir3\filename*.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
New:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3*{color:red}\\{color}*filename*.zip . \Network_drive\dir1\dir2\dir3*{color:red}\\{color}*filename*.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
Description |
Original:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3*{color:red}\\{color}*filename*.zip . \Network_drive\dir1\dir2\dir3*{color:red}\\{color}*filename*.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
New:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3*{color:red}\\filename*.zip . \Network_drive\dir1\dir2\dir3*{color:red}\\filename*.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
Description |
Original:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3*{color:red}\\filename*.zip . \Network_drive\dir1\dir2\dir3*{color:red}\\filename*.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
New:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3\\filename.zip_ . _\\Network_drive\dir1\dir2\dir3\\filename.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
Description |
Original:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\"my_build_job_name>copy_ _\\Network_drive\dir1\dir2\dir3\\filename.zip_ . _\\Network_drive\dir1\dir2\dir3\\filename.zip_ _The system cannot find the path specified. 0 file(s) copied._ _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
New:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\my_build_job_name>copy_ _Shared_Network_drive\dir1\dir2\dir3\\filename.zip_ . _Shared_Network_drive\dir1\dir2\dir3\\filename.zip_ The system cannot find the path specified. 0 file(s) copied. _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
Description |
Original:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\my_build_job_name>copy_ _Shared_Network_drive\dir1\dir2\dir3\\filename.zip_ . _Shared_Network_drive\dir1\dir2\dir3\\filename.zip_ The system cannot find the path specified. 0 file(s) copied. _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |
New:
I have a parameterized build (copied from an existing job) in jenkins. While building, my parameter is getting replaced by a white space. Here I am sharing what I have. Parameter Name: "*BuildDate*" (I tried using %% and ${} but no luck) *Windows batch command:* _copy \Network_drive\dir1\dir2\dir3\%*BuildDate*%\filename*.zip ._ *Output from jenkins console:* _c:\jenkins\workspace\my_build_job_name>copy_ _Shared_Network_drive\dir1\dir2\dir3\ \filename.zip_ . _Shared_Network_drive\dir1\dir2\dir3\ \filename.zip_ The system cannot find the path specified. 0 file(s) copied. _c:\jenkins\workspace\my_build_job_name>exit 1 Build step 'Execute Windows batch command' marked build as failure Notifying upstream projects of job completion Finished: FAILURE_ Any help? Thanks |