Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37428

parameterized plugin getting replaced by a white space

XMLWordPrintable

      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

            huybrechts huybrechts
            dhruvit01 Dhruvit Patel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: