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

Allow users to run conditional build steps if the build is running on a specific node

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • run-condition-plugin
    • None

      I have a master-slave. A build may run on either one of them depending on availability and/or via a manual trigger.

      If the build runs on the slave a separate build step needs to be run (eg: update application, pipe messages to an external service, etc).

          [JENKINS-19300] Allow users to run conditional build steps if the build is running on a specific node

          The conditonal-buildstep plugin does not directly implement any conditions, it reuses the ones provided by the run-condition plugin https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin
          So all this takes it to add a new condition implementation...

          Dominik Bartholdi added a comment - The conditonal-buildstep plugin does not directly implement any conditions, it reuses the ones provided by the run-condition plugin https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin So all this takes it to add a new condition implementation...

          Kevin R. added a comment -

          gotcha, thanks!

          Kevin R. added a comment - gotcha, thanks!

          Kevin R. added a comment -

          Reopening: it would be nice if this were more intuitive - having a simple checkbox that just says, "Restrict where matrix configurations can be run" is way simpler than having the user know that they need a new condition implementation.

          Kevin R. added a comment - Reopening: it would be nice if this were more intuitive - having a simple checkbox that just says, "Restrict where matrix configurations can be run" is way simpler than having the user know that they need a new condition implementation.

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkins_ci/plugins/run_condition/core/NodeCondition.java
          src/main/resources/org/jenkins_ci/plugins/run_condition/Messages.properties
          src/main/resources/org/jenkins_ci/plugins/run_condition/core/NodeCondition/config.jelly
          src/main/resources/org/jenkins_ci/plugins/run_condition/core/NodeCondition/help.jelly
          http://jenkins-ci.org/commit/run-condition-plugin/9e35ee7cb7083fda33761d2c1a64c206034e46b4
          Log:
          [FIXED JENKINS-19300] add condition to restrict execution on a set of nodes

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkins_ci/plugins/run_condition/core/NodeCondition.java src/main/resources/org/jenkins_ci/plugins/run_condition/Messages.properties src/main/resources/org/jenkins_ci/plugins/run_condition/core/NodeCondition/config.jelly src/main/resources/org/jenkins_ci/plugins/run_condition/core/NodeCondition/help.jelly http://jenkins-ci.org/commit/run-condition-plugin/9e35ee7cb7083fda33761d2c1a64c206034e46b4 Log: [FIXED JENKINS-19300] add condition to restrict execution on a set of nodes

          Kevin R. added a comment -

          @bap - thank you!! Much appreciated

          Kevin R. added a comment - @bap - thank you!! Much appreciated

            bap bap
            chr0n1x Kevin R.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: