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

Fix comparison

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'd like to use the conditional-buildstep plugin to execute different build step according to the node it is currently being executed (shell script for linux node, and windows batch for windows slaves).
      So I'd like to be able to evaluate :
      ${BUILD_SLAVE} == "SlaveName"

      Alone, ${BUILD_SLAVE} is well evaluated, however, once the "== SlaveName" appended, it is not resolved at all.

      I'm opening this issue because it is recommended in the following page :
      https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment - - edited

          I just released a new version of the plugin (0.2).
          This version now uses the 'run-condition-plugin' to define conditions. Please have look at the examples, your usecase is described: https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin

          the next version of the 'run-condition-plugin' will have an even easier way to configure the same: https://github.com/jenkinsci/run-condition-plugin/commit/c6a57da9cca2d629971721ff4cb53a79d74941d7

          to get use of it, you only need to update the 'run-condition-plugin' and you'l get all the new features in the 'conditional-buildstep-plugin'.

          Show
          domi Dominik Bartholdi added a comment - - edited I just released a new version of the plugin (0.2). This version now uses the 'run-condition-plugin' to define conditions. Please have look at the examples, your usecase is described: https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin the next version of the 'run-condition-plugin' will have an even easier way to configure the same: https://github.com/jenkinsci/run-condition-plugin/commit/c6a57da9cca2d629971721ff4cb53a79d74941d7 to get use of it, you only need to update the 'run-condition-plugin' and you'l get all the new features in the 'conditional-buildstep-plugin'.
          Hide
          stibbons stibbons added a comment -

          I can say anything but admire your reactivity ! Thanks so much, can't wait to try it tomorow

          Show
          stibbons stibbons added a comment - I can say anything but admire your reactivity ! Thanks so much, can't wait to try it tomorow

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              stibbons stibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: