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

Token macro support for scripts with parameters

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • scriptler-plugin
    • None

      It would be really useful to be able to pass parameters through to scripts when using token macro expansion.

      E.g. I have a script, which verifies the status of another build used via token macro expansion in a conditional build step. It would be great, if the name of the project could be passed as a parameter.

          [JENKINS-19372] Token macro support for scripts with parameters

          Johan Haleby added a comment -

          This is really quite important. For example I have scripts where need to pass a globally defined username and password as a parameter to my script. Now I have to duplicate the username and password for job that uses the script. The password is then shown in plain text in the parameter when editing the job which is not good. If password is to change I need to edit all jobs using the script and change it manually.

          Johan Haleby added a comment - This is really quite important. For example I have scripts where need to pass a globally defined username and password as a parameter to my script. Now I have to duplicate the username and password for job that uses the script. The password is then shown in plain text in the parameter when editing the job which is not good. If password is to change I need to edit all jobs using the script and change it manually.

            domi Dominik Bartholdi
            tveon Thomas Vestergaard Trolle
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: