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

Unable to specify multiple jars on classpath for a system groovy script

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi - apologies I wasn't sure what to do here so I raised an issue. Sorry if this is not standard protocol.

      So on 1.574 I am trying to create a system Groovy script that requires two jars. The field where you enter the jar names asks you to enter a jar one per line but the field only allows one line. The groovy script alternative indeed allows a multi line list of jars so that works but the system script does not.

      Is there a workaround for the time being I can use? Could you confirm either way if you believe this is a bug and if it is, is there work in the pipeline to address it?

      Many thanks

      Ben

        Attachments

          Activity

          Hide
          vjuranek vjuranek added a comment -

          Hi Ben,
          yes, this is a standard way how to let plugin developer know that there is a bug/missing feature.
          And yes, this is a bug, at least text in the help is misleading as the input doesn't allow enter multiple lines. What should work is to specify all jars on one like, separated by class path separator (":" on linux, ";" on windows), e.g.

          /path/to/jar1:/path/to/jar2
          

          I'll fix either help test or add a field which allow multiple lines (probably the later to be compatible with groovy setup)

          Show
          vjuranek vjuranek added a comment - Hi Ben, yes, this is a standard way how to let plugin developer know that there is a bug/missing feature. And yes, this is a bug, at least text in the help is misleading as the input doesn't allow enter multiple lines. What should work is to specify all jars on one like, separated by class path separator (":" on linux, ";" on windows), e.g. /path/to/jar1:/path/to/jar2 I'll fix either help test or add a field which allow multiple lines (probably the later to be compatible with groovy setup)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vojtech Juranek
          Path:
          src/main/java/hudson/plugins/groovy/SystemGroovy.java
          src/main/resources/hudson/plugins/groovy/SystemGroovy/config.jelly
          http://jenkins-ci.org/commit/groovy-plugin/dfa9181055382a67a8bf62cd387103f5b555fc23
          Log:
          [FIXED JENKINS-23997] Allow specify jars in multiple lines in system groovy script

          Compare: https://github.com/jenkinsci/groovy-plugin/compare/d4069f301859...dfa918105538

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: src/main/java/hudson/plugins/groovy/SystemGroovy.java src/main/resources/hudson/plugins/groovy/SystemGroovy/config.jelly http://jenkins-ci.org/commit/groovy-plugin/dfa9181055382a67a8bf62cd387103f5b555fc23 Log: [FIXED JENKINS-23997] Allow specify jars in multiple lines in system groovy script Compare: https://github.com/jenkinsci/groovy-plugin/compare/d4069f301859...dfa918105538

            People

            • Assignee:
              vjuranek vjuranek
              Reporter:
              bensullivan Ben Sullivan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: