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

Semicolon in parameter value breaks the scheduled pipeline

XMLWordPrintable

      Plugin can not properly parse parameter value that has semicolon in it. And does not allow any way to escape it.

      Pipeline fails with exception on trigger:

      triggers{         parameterizedCron("""         02 09-23 * * 1-3,5 %    parameter='parameter;;value'         """)}

       

      11:04:48 java.lang.IllegalArgumentException: Chunk [] is not a valid entry
      11:04:48 at com.google.common.base.Preconditions.checkArgument(Preconditions.java:220)
      11:04:48 at com.google.common.base.Splitter$MapSplitter.split(Splitter.java:528)
      11:04:48 at org.jenkinsci.plugins.parameterizedscheduler.ParameterParser.parse(ParameterParser.java:35)
      11:04:48 at org.jenkinsci.plugins.parameterizedscheduler.ParameterizedCronTab.create(ParameterizedCronTab.java:44)
      11:04:48 at org.jenkinsci.plugins.parameterizedscheduler.ParameterizedCronTabList.create(ParameterizedCronTabList.java:46)
      11:04:48 at org.jenkinsci.plugins.parameterizedscheduler.ParameterizedCronTabList.create(ParameterizedCronTabList.java:28)
      11:04:48 at org.jenkinsci.plugins.parameterizedscheduler.ParameterizedTimerTrigger.<init>(ParameterizedTimerTrigger.java:39)
      11:04:48 Caused: java.lang.reflect.InvocationTargetException
      11:04:48 at jdk.internal.reflect.GeneratedConstructorAccessor455.newInstance(Unknown Source)
      11:04:48 at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      11:04:48 at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      11:04:48 at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:330)
      11:04:48 at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:272)
      11:04:48 at org.jenkinsci.plugins.pipeline.modeldefinition.CommonUtils.instantiateDescribable(CommonUtils.java:130)
      11:04:48 at org.jenkinsci.plugins.pipeline.modeldefinition.CommonUtils$instantiateDescribable.callStatic(Unknown Source)
      11:04:48 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
      11:04:48 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:197)
      11:04:48 at org.kohsuke.groovy.sandbox.impl.Checker$2.call(Checker.java:216)
      11:04:48 at org.kohsuke.groovy.sandbox.GroovyInterceptor.onStaticCall(GroovyInterceptor.java:35)
      11:04:48 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onStaticCall(SandboxInterceptor.java:210)
      11:04:48 at org.kohsuke.groovy.sandbox.impl.Checker$2.call(Checker.java:214)
      11:04:48 at org.kohsuke.groovy.sandbox.impl.Checker.checkedStaticCall(Checker.java:218)
      11:04:48 at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:120)
      11:04:48 at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
      11:04:48 Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 2d37cf51-182a-4ea8-9ac3-a8dc20abdd07
      11:04:48 Caused: java.lang.IllegalArgumentException: Could not instantiate
      {parameterizedSpecification= 11:04:48 02 09-23 * * 1-3,5 %    parameter='parameter;;value' 11:04:48 }
      for org.jenkinsci.plugins.parameterizedscheduler.ParameterizedTimerTrigger

       

            batmat Baptiste Mathus
            alex_no alex
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: