• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • scriptler-plugin
    • None

      Dominik:

      currently, "scriptler" uses either jenkins classloader or TCCL;
      https://github.com/jenkinsci/scriptler-plugin

      do you think it would be feasible for "scriptler" also to support explicit classpath?

      say, similar to how "dynamicparameter" plugin is doing this now:
      https://github.com/Seitenbau/sb-jenkins-dynamicparameter

      namely:
      https://github.com/jenkinsci/dynamicparameter-plugin/blob/master/src/main/java/com/seitenbau/jenkins/plugins/dynamicparameter/util/JenkinsUtils.java#L97

      1) provide capability to define "jar folder" location on jenkins
      2) replicate this folder to all jenkins slaves
      3) add these folders to the GroovyShell classpath

      finally, since
      "dynamicparameter" depends on "scriptler", you could probably
      agree with authors of "dynamicparameter" to move this functionality
      into the "scriptler" and make it a shared feature for all groovy script plugins?

      thank you;

      Andrei.

          [JENKINS-15878] scriptler explicit classpath

          Andrei Pozolotin created issue -
          Andrei Pozolotin made changes -
          Summary Original: scripler explicit classpath New: scriptler explicit classpath
          Dominik Bartholdi made changes -
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Wisen Tanasa made changes -
          Description Original: Dominik:

          currently, "scriptler" uses either jenkins classloader or TCCL;
          https://github.com/jenkinsci/scriptler-plugin

          do you think it would be feasible for "scriptler" also to support explicit classpath?

          say, similar to how "dynamicparameter" plugin is doing this now:
          https://github.com/Seitenbau/sb-jenkins-dynamicparameter

          namely:
          https://github.com/Seitenbau/sb-jenkins-dynamicparameter/blob/master/src/main/java/com/seitenbau/jenkins/plugins/dynamicparameter/util/JenkinsUtils.java#L98

          1) provide capability to define "jar folder" location on jenkins
          2) replicate this folder to all jenkins slaves
          3) add these folders to the GroovyShell classpath

          finally, since
          "dynamicparameter" depends on "scriptler", you could probably
          agree with authors of "dynamicparameter" to move this functionality
          into the "scriptler" and make it a shared feature for all groovy script plugins?

          thank you;

          Andrei.
          New: Dominik:

          currently, "scriptler" uses either jenkins classloader or TCCL;
          https://github.com/jenkinsci/scriptler-plugin

          do you think it would be feasible for "scriptler" also to support explicit classpath?

          say, similar to how "dynamicparameter" plugin is doing this now:
          https://github.com/Seitenbau/sb-jenkins-dynamicparameter

          namely:
          https://github.com/jenkinsci/dynamicparameter-plugin/blob/master/src/main/java/com/seitenbau/jenkins/plugins/dynamicparameter/util/JenkinsUtils.java#L97

          1) provide capability to define "jar folder" location on jenkins
          2) replicate this folder to all jenkins slaves
          3) add these folders to the GroovyShell classpath

          finally, since
          "dynamicparameter" depends on "scriptler", you could probably
          agree with authors of "dynamicparameter" to move this functionality
          into the "scriptler" and make it a shared feature for all groovy script plugins?

          thank you;

          Andrei.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146680 ] New: JNJira + In-Review [ 176677 ]

            domi Dominik Bartholdi
            andrei_pozolotin Andrei Pozolotin
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: