Details

    • Similar Issues:

      Description

      JENKINS VERSION: 1.625.2 LTE
      PLUGIN VERSION: 0.53

      when a job is triggered that uses the "Choose Source for Default Value" and the "Default Groovy Script" option is used, an NPE is generated when the job is run.

      Nov 20, 2015 4:25:00 PM com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition executeGroovyScriptAndProcessGroovyValue
      SEVERE: null
      java.lang.NullPointerException
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.getGroovyBinding(ExtendedChoiceParameterDefinition.java:690)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.getGroovyShell(ExtendedChoiceParameterDefinition.java:711)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.executeGroovyScript(ExtendedChoiceParameterDefinition.java:671)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.executeGroovyScriptAndProcessGroovyValue(ExtendedChoiceParameterDefinition.java:660)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.computeValue(ExtendedChoiceParameterDefinition.java:633)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.computeEffectiveDefaultValue(ExtendedChoiceParameterDefinition.java:787)
              at com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition.getDefaultParameterValue(ExtendedChoiceParameterDefinition.java:592)
              at jenkins.model.ParameterizedJobMixIn.getDefaultParametersValues(ParameterizedJobMixIn.java:154)
              at jenkins.model.ParameterizedJobMixIn.scheduleBuild2(ParameterizedJobMixIn.java:136)
              at jenkins.model.ParameterizedJobMixIn.scheduleBuild(ParameterizedJobMixIn.java:94)
              at hudson.model.AbstractProject.scheduleBuild(AbstractProject.java:837)
              at hudson.triggers.TimerTrigger.run(TimerTrigger.java:55)
              at hudson.triggers.Trigger.checkTriggers(Trigger.java:268)
              at hudson.triggers.Trigger$Cron.doRun(Trigger.java:217)
              at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
       
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: vimil
          Path:
          src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/719e73494132baf272abe4a461da6ee0eeb344e1
          Log:
          JENKINS-31690 fix for getGroovyBinding NPE

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: vimil Path: src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java http://jenkins-ci.org/commit/extended-choice-parameter-plugin/719e73494132baf272abe4a461da6ee0eeb344e1 Log: JENKINS-31690 fix for getGroovyBinding NPE
          Hide
          vimil vimil added a comment -

          Gixed in version 0.56

          Show
          vimil vimil added a comment - Gixed in version 0.56
          Hide
          jimbo jim gedarovich added a comment -

          thanks vimil I'll try out the new plugin soon

          Show
          jimbo jim gedarovich added a comment - thanks vimil I'll try out the new plugin soon

            People

            • Assignee:
              vimil vimil
              Reporter:
              jimbo jim gedarovich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: