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

[scriptler plugin]build failed if groovy script return false.

    Details

    • Similar Issues:

      Description

      background:

      I want to run some checking script on scriptler plugin.
      ex) disk usage check, file exists check, network connectivity test...

      but, scriptler plugin does not have method to fail to job except throwing a exception.
      If throw exception in the script, the script output is not to print console log.

      feature:

      • build fail if the scriptler script return false.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          integrated into version 2.3

          Show
          domi Dominik Bartholdi added a comment - integrated into version 2.3
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Hayato ITO
          Path:
          src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java
          src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java
          src/main/java/org/jenkinsci/plugins/scriptler/util/ScriptHelper.java
          http://jenkins-ci.org/commit/scriptler-plugin/e00d3751ede4fd00920cccdb93b20202aadbb97e
          Log:
          fix JENKINS-13979

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Hayato ITO Path: src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java src/main/java/org/jenkinsci/plugins/scriptler/util/ScriptHelper.java http://jenkins-ci.org/commit/scriptler-plugin/e00d3751ede4fd00920cccdb93b20202aadbb97e Log: fix JENKINS-13979
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java
          src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java
          src/main/java/org/jenkinsci/plugins/scriptler/util/ScriptHelper.java
          src/test/java/org/jenkinsci/plugins/scriptler/util/GroovyScriptTest.java
          http://jenkins-ci.org/commit/scriptler-plugin/ed0954b478c6c0e3c37015bd936e8a61e4886c62
          Log:
          Merge branch 'master' of https://github.com/hayato1980/scriptler-plugin into JENKINS-13979

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/scriptler/builder/ScriptlerBuilder.java src/main/java/org/jenkinsci/plugins/scriptler/util/GroovyScript.java src/main/java/org/jenkinsci/plugins/scriptler/util/ScriptHelper.java src/test/java/org/jenkinsci/plugins/scriptler/util/GroovyScriptTest.java http://jenkins-ci.org/commit/scriptler-plugin/ed0954b478c6c0e3c37015bd936e8a61e4886c62 Log: Merge branch 'master' of https://github.com/hayato1980/scriptler-plugin into JENKINS-13979

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              hayato_1980 Hayato Ito
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: