Secret file for credentials as build parameter does not get passed to workspace

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When a secret file is created in credentials plugin, it does not get passed to build node workspace:

       

      Steps to reproduce:

      1. Add a credentials in form of secret file to Jenkins.

      2. Create a freestyle project with one build parameter ${KEY}

      3. Setup the project to run on a node

      4. Add sh script to build steps : cat ${KEY}

      5. Run the project

      6. You should see something like the following in project output:
      [test_creds] $ /bin/sh -xe /tmp/jenkins18411461223860606461.sh
      + cat key
      cat: key: No such file or directory
       

            Assignee:
            Unassigned
            Reporter:
            Amir O. Khosrowshahi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: