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

    Details

    • Similar Issues:

      Description

      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).

        Attachments

          Activity

          Hide
          domi 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...

          Show
          domi 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...
          Hide
          chr0n1x Kevin R. added a comment -

          gotcha, thanks!

          Show
          chr0n1x Kevin R. added a comment - gotcha, thanks!
          Hide
          chr0n1x 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.

          Show
          chr0n1x 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.
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          chr0n1x Kevin R. added a comment -

          @bap - thank you!! Much appreciated

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: