Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: conditional-buildstep-plugin
-
Labels:None
-
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
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'.