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

Scriptler problem with argument "scriptlerScriptId"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • scriptler-plugin
    • Jenkins 2.233.1
      Scriptler 3.4

      We did a Jenkins Update from 2.319.1 to 2.233.1

      After the opdate our Release Build is not working anymore.

      We get the warning:
      WARNING: Unknown parameter(s) found for class type 'org.biouno.unochoice.model.ScriptlerScript': scriptlerScriptId
      The Code for the Pipeline did not change:

      properties([
      parameters([
      [$class: 'DynamicReferenceParameter',
      choiceType: 'ET_FORMATTED_HIDDEN_HTML',
      description: 'User who started the job. This is a hook to grab for this information.',
      name: 'BuildUser',
      omitValueField: true,
      randomName: 'choice-parameter-7515791235498564',
      referencedParameters: '',
      script: [
      $class: 'ScriptlerScript',
      scriptlerScriptId: 'GetUserId.groovy'
      ]
      ]
      ])
      ])

       

      Whats wrong? Why the argument is not found? Did you change code in the Scriptler-Class?

      Thanks for a feedback

      Best regards

      Urs Zbinden

          [JENKINS-68033] Scriptler problem with argument "scriptlerScriptId"

          The scripture plugin was a great feature but it's a bummer that it's not working with higher version of Jenkins. Is there a planned fix?

          Clemence Kisekwa added a comment - The scripture plugin was a great feature but it's a bummer that it's not working with higher version of Jenkins. Is there a planned fix?

          Michael Tughan added a comment - - edited

          Hey everyone! I’m glad that you all use Scriptler and find it very useful!

          This is actually caused by the Active Choices plugin, version 2.6.0. It was originally reported as JENKINS-67934, and I’ve already helped to fix that bug as I ran across it too. It should be fixed in the next release of Active Choices.

          kinow, any idea when you might be able to release that fix?

          Michael Tughan added a comment - - edited Hey everyone! I’m glad that you all use Scriptler and find it very useful! This is actually caused by the Active Choices plugin, version 2.6.0. It was originally reported as JENKINS-67934 , and I’ve already helped to fix that bug as I ran across it too. It should be fixed in the next release of Active Choices. kinow , any idea when you might be able to release that fix?

          Hi mtughan !

          Ah, is it related to the issue you fixed recently with the DataBoundSetters? I'm a little busy these days to work on fixes/issues, but a release is just a couple commands, so I'd be happy to cut it now if that'll fix this issue. Just confirm that I just need to release what we have on master in the active choices repository, and I'll do it! Thanks!

          Bruno

          Bruno P. Kinoshita added a comment - Hi mtughan ! Ah, is it related to the issue you fixed recently with the DataBoundSetters? I'm a little busy these days to work on fixes/issues, but a release is just a couple commands, so I'd be happy to cut it now if that'll fix this issue. Just confirm that I just need to release what we have on master in the active choices repository, and I'll do it! Thanks! Bruno

          Michael Tughan added a comment - - edited

          kinow, yeah, should just need what’s on the master branch to fix this. If you’re able to cut a release, that’d be super appreciated!

          Michael Tughan added a comment - - edited kinow , yeah, should just need what’s on the master branch to fix this. If you’re able to cut a release, that’d be super appreciated!

          Thanks Michael. 2.6.1 is released. I think there's another issue that was a regression introduced in 2.6.0, but I haven't had a chance to look into that. But at least this one should be fixed now. (I think the regression is related to HTML/CSS layout)

           

          Bruno P. Kinoshita added a comment - Thanks Michael. 2.6.1 is released. I think there's another issue that was a regression introduced in 2.6.0, but I haven't had a chance to look into that. But at least this one should be fixed now. (I think the regression is related to HTML/CSS layout)  

          Moved the issue to resolved/released, but in case the issue persists, just move it back to re-opened, please. Thank you!

          Bruno P. Kinoshita added a comment - Moved the issue to resolved/released, but in case the issue persists, just move it back to re-opened, please. Thank you!

          Urs Zbinden added a comment -

          I just did an update of the "Active Choices" plugin.

          Everything works fine.

          Great work... Thanks

          Urs Zbinden added a comment - I just did an update of the "Active Choices" plugin. Everything works fine. Great work... Thanks

          urs_zbinden, glad to hear it.

          stevewallone, swamygoud18, ckisekwa, are you also able to confirm this issue is resolved with Active Choices version 2.6.1?

          kinow, thank you very much for releasing this!

          Michael Tughan added a comment - urs_zbinden , glad to hear it. stevewallone , swamygoud18 , ckisekwa , are you also able to confirm this issue is resolved with Active Choices version 2.6.1? kinow , thank you very much for releasing this!

          Swamy added a comment -

          Great work mtughan  kinow and thank you very much for quick fix. I have to edit the script options to get going but It is working as expected.

           

          Swamy added a comment - Great work mtughan   kinow and thank you very much for quick fix. I have to edit the script options to get going but It is working as expected.  

          Steve Wall added a comment -

          mtughan it's working again for me as well. Thanks! It did take an extra though. With the initial "build job" attempt, the dropdown populated by scripter was empty. I had to select the job "configure" and save it without changes. After that the drop down was populated. I noticed this in the Jenkins log.
          ```
          2022-03-18 17:29:04.398+0000 [id=1796] SEVERE o.b.u.AbstractScriptableParameter#eval: Error executing script for dynamic parameter
          java.lang.NullPointerException
          at org.biouno.unochoice.model.ScriptlerScript.toGroovyScript(ScriptlerScript.java:228)
          ```

          Here's how scriptler is used.
          ```
          properties([
          parameters([
          [
          $class : 'ChoiceParameter',
          choiceType: 'PT_SINGLE_SELECT',
          name : 'ANTHOS_ENV',
          script : [
          $class : 'ScriptlerScript',
          scriptlerScriptId: 'anthos-env.groovy'
          ]
          ]
          ])
          ])
          ```

          Steve Wall added a comment - mtughan  it's working again for me as well. Thanks! It did take an extra though. With the initial "build job" attempt, the dropdown populated by scripter was empty. I had to select the job "configure" and save it without changes. After that the drop down was populated. I noticed this in the Jenkins log. ``` 2022-03-18 17:29:04.398+0000 [id=1796] SEVERE o.b.u.AbstractScriptableParameter#eval: Error executing script for dynamic parameter java.lang.NullPointerException at org.biouno.unochoice.model.ScriptlerScript.toGroovyScript(ScriptlerScript.java:228) ``` Here's how scriptler is used. ``` properties([ parameters([ [ $class : 'ChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name : 'ANTHOS_ENV', script : [ $class : 'ScriptlerScript', scriptlerScriptId: 'anthos-env.groovy' ] ] ]) ]) ```

            mtughan Michael Tughan
            urs_zbinden Urs Zbinden
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: