jenkinsci / jenkinsci/parameterized-trigger-plugin
[JENKINS-37428] parameterized plugin getting replaced by a white space
- Dominant language
- Java
- Stars
- 77
- Forks
- 174
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 1
Description
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
---
Originally reported by dhruvit01, imported from: parameterized plugin getting replaced by a white space
Raw content of original issue
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
Contributor guide
Assessment
This issue has not been assessed yet.