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

HowTo use parameter expression

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      is not clear how to use the expression parameter in ssh-agent
      can you please give some hints or update the doc

        Attachments

          Activity

          Hide
          adrianlzt adrian lopez added a comment -

          You should set one of the "Credentials Parameter" of your job.

          Example, in your job you create a new parameter of type "Credential Parameter" named "mysecret".

          Then, in the "Expression parameter" you set "${mysecret}".

          Here is the function doing all the work.

          You cannot use other type of parameter (string parameter for example) because is filtered

          if (parameter instanceof CredentialsParameterValue) {
          Show
          adrianlzt adrian lopez added a comment - You should set one of the "Credentials Parameter" of your job. Example, in your job you create a new parameter of type "Credential Parameter" named "mysecret". Then, in the "Expression parameter" you set "${mysecret}". Here is the function doing all the work. You cannot use other type of parameter (string parameter for example) because is filtered if (parameter instanceof CredentialsParameterValue) {

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ismben ismail ouriaghli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: