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

Allow custom file to use Credentials

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Similar to the Maven Settings configuration it would be nice to be able to select Credentials from the Credentials plugin for custom configuration files. Perhaps allow us to enter a keyword in the custom configuration file eg {APP_PASSWORD} and then we can select a Credential and match it to a parameter so that it gets automatically replaced when the CFP plugin pushes the configuration to the builder.

        Attachments

          Activity

          zxiiro Thanh Ha created issue -
          Hide
          imod Dominik Bartholdi added a comment -

          as a workaround, you could use the "Credentials Binding Plugin" [1] and reference the credentials as env variables in your file. In the configuration of your job, just check the box "Replace Tokens" for the respective configuration file and the env variables will be replaced within the file at runtime.

           

          [1]https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin

          Show
          imod Dominik Bartholdi added a comment - as a workaround, you could use the "Credentials Binding Plugin" [1] and reference the credentials as env variables in your file. In the configuration of your job, just check the box "Replace Tokens" for the respective configuration file and the env variables will be replaced within the file at runtime.   [1] https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              zxiiro Thanh Ha
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: