jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-37428] parameterized plugin getting replaced by a white space

Open
#687 0 comments 0 reactions 0 assignees View on GitHub
component:parameterized-trigger-plugin imported-jira-issue priority:blocker resolution:unresolved
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


  • assignee: huybrechts
  • status: Open
  • priority: Blocker
  • component(s): parameterized-trigger-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-07

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.