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

Prevent build beeing triggered for invalid parameters

    Details

    • Similar Issues:

      Description

      Ideally the build-button would be disabled as long as one validating parameters is not satisfied.

        Attachments

          Activity

          christianlangmann Christian Langmann created issue -
          Hide
          jsacp Jags S A added a comment -

          I believe JENKINS-6158 did its job, and still works, and there is no regression, in the sense that the build process does indeed NOT start if the validation via regex fails.

          The reason why JENKINS-23944 or Jenkins-23951 are much needed features is because before the build starts, the Jenkins Job may be set to do various things: e.g. inject variables, fetch a git clone from a remote repository, prepare an environment for build, run a groovy script, ...

          All of the above mentioned things will lead to a large amount of wasted time (and consequently resources) which get allocated just to end with an obvious message of "Build Failed" due to invalid input parameters.

          Instead it would be much better if this plug-in prevented any user or an upstream job from triggering the build at all.

          Thank you.

          Show
          jsacp Jags S A added a comment - I believe JENKINS-6158 did its job, and still works, and there is no regression, in the sense that the build process does indeed NOT start if the validation via regex fails. The reason why JENKINS-23944 or Jenkins-23951 are much needed features is because before the build starts, the Jenkins Job may be set to do various things: e.g. inject variables, fetch a git clone from a remote repository, prepare an environment for build, run a groovy script, ... All of the above mentioned things will lead to a large amount of wasted time (and consequently resources) which get allocated just to end with an obvious message of "Build Failed" due to invalid input parameters. Instead it would be much better if this plug-in prevented any user or an upstream job from triggering the build at all. Thank you.
          rtyler R. Tyler Croy made changes -
          Field Original Value New Value
          Workflow JNJira [ 156821 ] JNJira + In-Review [ 179405 ]
          Hide
          jlelli Juri Lelli added a comment -

          I believe version 2.3 still has this problem, maybe a regression?

          I think I successfully installed the plugin and regex checks are working. However I'm able to hit Build button even if an error is currently displayed.

          Show
          jlelli Juri Lelli added a comment - I believe version 2.3 still has this problem, maybe a regression? I think I successfully installed the plugin and regex checks are working. However I'm able to hit Build button even if an error is currently displayed.

            People

            • Assignee:
              petehayes Peter Hayes
              Reporter:
              christianlangmann Christian Langmann
            • Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: