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

Replace environment variable by token macro plug-in

      At the moment the plug-in saves its output as environment variables. Instead, it could implement Token Macros (https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin) reusable by other plug-ins.

          [JENKINS-34296] Replace environment variable by token macro plug-in

          Bruno P. Kinoshita created issue -
          Bruno P. Kinoshita made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]

          Would setting a token macro be a complete replacement for an environment variable, or just an addition?

          With an envvar, you are able to use that data in a shell or groovy script for further processing. When setting a token macro, you can use the run-condition-plugin or conditional-buildstep, but it doesn't seem to be as featureful.

          Am I missing something, or are there other considerations such as pipeline support where not messing with envvars is preferred?

          Christian McHugh added a comment - Would setting a token macro be a complete replacement for an environment variable, or just an addition? With an envvar, you are able to use that data in a shell or groovy script for further processing. When setting a token macro, you can use the run-condition-plugin or conditional-buildstep, but it doesn't seem to be as featureful. Am I missing something, or are there other considerations such as pipeline support where not messing with envvars is preferred?
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170370 ] New: JNJira + In-Review [ 183874 ]

            mchugh19 Christian McHugh
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: