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

          Kevin R. created issue -

          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...
          Dominik Bartholdi made changes -
          Component/s New: run-condition [ 16129 ]
          Component/s Original: conditional-buildstep [ 15947 ]
          Assignee Original: Dominik Bartholdi [ domi ] New: bap [ bap ]

          Kevin R. added a comment -

          gotcha, thanks!

          Kevin R. added a comment - gotcha, thanks!
          Kevin R. made changes -
          Assignee Original: bap [ bap ] New: Kevin R. [ chr0n1x ]
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          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.
          Kevin R. made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Kevin R. made changes -
          Assignee Original: Kevin R. [ chr0n1x ] New: bap [ bap ]

          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
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: