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

copyartifact plugin breaks Jenkinsfile upstream triggers

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • copyartifact-plugin
    • None
    • Jenkins 2.87, copyartifact 1.39, OpenJDK 1.8.0_144
      Fresh installation on Ubuntu 17.10 with Jenkins BlueOcean and Pipeline plugins as of 01.11.2017

    Description

      Upgrading copyartifact plugin from 1.38.1 to 1.39 is breaking pipelines with upstream triggers in Jenkinsfile (as documented in https://jenkins.io/doc/book/pipeline/syntax/#triggers):

       

      Used Jenkinsfile:

      pipeline {
          agent any
          triggers {
              upstream (
                  upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
              )
          }
          stages {
              stage('Example') {
                  steps {
                      echo 'Hello World'
                  }
              }
          }
      }
      

       

      Error message:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
       WorkflowScript: 5: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 5, column 13.
       upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
       ^
      
      WorkflowScript: 5: Invalid parameter "threshold", did you mean "upstreamFilterStrategy"? @ line 5, column 39.
       upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
       ^
      
      2 errors
      
      at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
       at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
       at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
       at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
       at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
       at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
       at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
       at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
       at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:129)
       at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:123)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:517)
       at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:480)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:269)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:421)
       Finished: FAILURE
      

       

      Steps to reproduce:
      Install Jenkins with Pipeline, BlueOcean and CopyArtifact plugins and create multibranch project with supplied Jenkinsfile.

       

      Workaround:
      After reverting copyartifact plugin to 1.38.1 (or uninstalling it) everything is working fine again.

      Attachments

        Issue Links

          Activity

            marcus_0x0 Marcus H created issue -
            marcus_0x0 Marcus H made changes -
            Field Original Value New Value
            Description Upgrading copyartifact plugin from 1.38.1 to 1.39 is breaking pipelines with upstream triggers in Jenkinsfile (as documented in [https://jenkins.io/doc/book/pipeline/syntax/#triggers]):

            triggers \{ upstream (upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS) }

             
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
            WorkflowScript: 5: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 5, column 13.
                           upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
                           ^

            WorkflowScript: 5: Invalid parameter "threshold", did you mean "upstreamFilterStrategy"? @ line 5, column 39.
                           upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
                                                     ^

            2 errors

            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
            at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
            at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
            at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
            at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
            at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
            at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
            at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
            at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
            at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:129)
            at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:123)
            at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:517)
            at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:480)
            at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:269)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:421)
            Finished: FAILURE
             

            After reverting copyartifact plugin to 1.38.1 (or uninstalling it) everything is working fine again.

             
            Upgrading copyartifact plugin from 1.38.1 to 1.39 is breaking pipelines with upstream triggers in Jenkinsfile (as documented in [https://jenkins.io/doc/book/pipeline/syntax/#triggers]):

             

            Used Jenkinsfile:
            {noformat}
            pipeline {
                agent any
                triggers {
                    upstream (
                        upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
                    )
                }
                stages {
                    stage('Example') {
                        steps {
                            echo 'Hello World'
                        }
                    }
                }
            }
            {noformat}
             

            Error message:
            {noformat}
            org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
             WorkflowScript: 5: Invalid parameter "upstreamProjects", did you mean "upstreamFilterStrategy"? @ line 5, column 13.
             upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
             ^

            WorkflowScript: 5: Invalid parameter "threshold", did you mean "upstreamFilterStrategy"? @ line 5, column 39.
             upstreamProjects: 'job1', threshold: hudson.model.Result.SUCCESS
             ^

            2 errors

            at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
             at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
             at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
             at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
             at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
             at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
             at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
             at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
             at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
             at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:129)
             at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:123)
             at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:517)
             at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:480)
             at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:269)
             at hudson.model.ResourceController.execute(ResourceController.java:97)
             at hudson.model.Executor.run(Executor.java:421)
             Finished: FAILURE
            {noformat}
             

            Steps to reproduce:
             Install Jenkins with Pipeline, BlueOcean and CopyArtifact plugins and create multibranch project with supplied Jenkinsfile.

             

            Workaround:
             After reverting copyartifact plugin to 1.38.1 (or uninstalling it) everything is working fine again.
            ikedam ikedam added a comment -

            "upstream"is already used as a symbol for ReverseBuildTrigger provided by Jenkins core.
            https://github.com/jenkinsci/jenkins/blob/jenkins-2.73/core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java#L192

            ikedam ikedam added a comment - "upstream"is already used as a symbol for ReverseBuildTrigger provided by Jenkins core. https://github.com/jenkinsci/jenkins/blob/jenkins-2.73/core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java#L192
            ikedam ikedam added a comment -

            marcus_0x0
            What happen if you use the latest syntax to define triggers instead of triggers?

            properties([
              pipelineTriggers([
                upstream(
                  threshold: 'SUCCESS',
                  upstreamProjects: 'job1'
                )
              ])
            ])
            
            ikedam ikedam added a comment - marcus_0x0 What happen if you use the latest syntax to define triggers instead of triggers ? properties([ pipelineTriggers([ upstream( threshold: 'SUCCESS' , upstreamProjects: 'job1' ) ]) ])
            marcus_0x0 Marcus H added a comment -

            ikedam

            The syntax is outdated:

            The properties section has been renamed as of version 0.8. Use options instead. @ line 4, column 1.
            

            After renaming it to options:

            options{
              pipelineTriggers([
                upstream(
                  threshold: 'SUCCESS',
                  upstreamProjects: 'job1'
                )
              ])
            }
            
            Invalid option type "pipelineTriggers". Valid option types: [authorizationMatrix, buildDiscarder, catchError, disableConcurrentBuilds, gitLabConnection, gitlabBuilds, gitlabCommitStatus, overrideIndexTriggers, retry, script, skipDefaultCheckout, skipStagesAfterUnstable, throttle, timeout, timestamps, waitUntil, withContext, withCredentials, withEnv, ws] @ line 4, column 3.
            

             

            marcus_0x0 Marcus H added a comment - ikedam The syntax is outdated: The properties section has been renamed as of version 0.8. Use options instead. @ line 4, column 1. After renaming it to options: options{ pipelineTriggers([ upstream( threshold: 'SUCCESS', upstreamProjects: 'job1' ) ]) } Invalid option type "pipelineTriggers". Valid option types: [authorizationMatrix, buildDiscarder, catchError, disableConcurrentBuilds, gitLabConnection, gitlabBuilds, gitlabCommitStatus, overrideIndexTriggers, retry, script, skipDefaultCheckout, skipStagesAfterUnstable, throttle, timeout, timestamps, waitUntil, withContext, withCredentials, withEnv, ws] @ line 4, column 3.  
            ikedam ikedam added a comment -

            Hmm... "triggeres" syntax once outdated, but looks introduced again.
            I expected the alternate syntax allows pipeline find the suitable class for the symbol, but it doesn't work at all.
            There looks no workarounds. Please use copyartifact-1.38.1 till the fixed version gets ready.

            ikedam ikedam added a comment - Hmm... "triggeres" syntax once outdated, but looks introduced again. I expected the alternate syntax allows pipeline find the suitable class for the symbol, but it doesn't work at all. There looks no workarounds. Please use copyartifact-1.38.1 till the fixed version gets ready.
            ikedam ikedam added a comment -

            Of course, passing upstream instance of copyartifact to triggers cause failure:

            pipeline {
                agent any
                triggers {
                    upstream (
                      fallbackToLastSuccessful: false,
                      upstreamFilterStrategy: hudson.plugins.copyartifact.TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting,
                      allowUpstreamDependencies: false
                    )
                }
                stages {
                    stage('Example') {
                        steps {
                            echo 'Hello World'
                        }
                    }
                }
            }
            

            Result:

            Obtained Jenkinsfile from git C:\Users\ikedam\workspace\test
            [Pipeline] End of Pipeline
            java.lang.ClassCastException: hudson.plugins.copyartifact.TriggeredBuildSelector cannot be cast to hudson.triggers.Trigger
            	at org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty.<init>(PipelineTriggersJobProperty.java:67)
            	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
            	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
            	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
            	at org.jenkinsci.plugins.pipeline.modeldefinition.Utils.updateJobProperties(Utils.groovy:540)
            	at org.jenkinsci.plugins.pipeline.modeldefinition.Utils$updateJobProperties$7.call(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
            	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:19)
            	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeProperties(jar:file:/C:/Users/yasuke/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:618)
            	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/C:/Users/yasuke/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:65)
            	at WorkflowScript.run(WorkflowScript:1)
            	at ___cps.transform___(Native Method)
            	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
            	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
            	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
            	at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
            	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:76)
            	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
            	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
            	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
            	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
            	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
            	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
            	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122)
            	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
            	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
            	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19)
            	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35)
            	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32)
            	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
            	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:32)
            	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
            	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330)
            	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82)
            	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242)
            	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230)
            	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
            	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
            	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            	at java.lang.Thread.run(Thread.java:745)
            Finished: FAILURE
            

            I'm not sure why pipeline fails to bind elements in triggers block to appropriate classes.

            ikedam ikedam added a comment - Of course, passing upstream instance of copyartifact to triggers cause failure: pipeline { agent any triggers { upstream ( fallbackToLastSuccessful: false , upstreamFilterStrategy: hudson.plugins.copyartifact.TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, allowUpstreamDependencies: false ) } stages { stage( 'Example' ) { steps { echo 'Hello World' } } } } Result: Obtained Jenkinsfile from git C:\Users\ikedam\workspace\test [Pipeline] End of Pipeline java.lang.ClassCastException: hudson.plugins.copyartifact.TriggeredBuildSelector cannot be cast to hudson.triggers.Trigger at org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty.<init>(PipelineTriggersJobProperty.java:67) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils.updateJobProperties(Utils.groovy:540) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils$updateJobProperties$7.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:19) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeProperties(jar:file:/C:/Users/yasuke/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:618) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/C:/Users/yasuke/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:65) at WorkflowScript.run(WorkflowScript:1) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:76) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:32) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Finished: FAILURE I'm not sure why pipeline fails to bind elements in triggers block to appropriate classes.
            ikedam ikedam added a comment - Created a pull request: https://github.com/jenkinsci/copyartifact-plugin/pull/95
            ikedam ikedam made changes -
            Link This issue is related to JENKINS-47781 [ JENKINS-47781 ]

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ASTParserUtils.groovy
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/RuntimeASTTransformer.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/TriggersTest.java
            pipeline-model-definition/src/test/resources/actualTriggerCorrectScope.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/1a54eb838def9a5a0cb6f7ffcf2658621d914f4f
            Log:
            [FIXED JENKINS-47780] Fix instantiation time scoping of describables

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ASTParserUtils.groovy pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/RuntimeASTTransformer.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/TriggersTest.java pipeline-model-definition/src/test/resources/actualTriggerCorrectScope.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/1a54eb838def9a5a0cb6f7ffcf2658621d914f4f Log: [FIXED JENKINS-47780] Fix instantiation time scoping of describables
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ASTParserUtils.groovy
            pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/RuntimeASTTransformer.groovy
            pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/TriggersTest.java
            pipeline-model-definition/src/test/resources/actualTriggerCorrectScope.groovy
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f5672618087f5fc43b37b91c60587dd33c168e04
            Log:
            Merge pull request #215 from abayer/jenkins-47780-mk2

            [FIXED JENKINS-47780] Fix instantiation time scoping of describables

            Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/73124e3faa9d...f5672618087f

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ASTParserUtils.groovy pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/RuntimeASTTransformer.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/TriggersTest.java pipeline-model-definition/src/test/resources/actualTriggerCorrectScope.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f5672618087f5fc43b37b91c60587dd33c168e04 Log: Merge pull request #215 from abayer/jenkins-47780-mk2 [FIXED JENKINS-47780] Fix instantiation time scoping of describables Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/73124e3faa9d...f5672618087f
            ikedam ikedam added a comment -

            marcus_0x0
            Fixed in "Pipeline: Declarative" (pipeline-mode-definition-plugin) 1.2.4.
            It's available in the update center. Please try that.

            ikedam ikedam added a comment - marcus_0x0 Fixed in "Pipeline: Declarative" (pipeline-mode-definition-plugin) 1.2.4. It's available in the update center. Please try that.
            ikedam ikedam made changes -
            Assignee ikedam [ ikedam ] Marcus H [ marcus_0x0 ]
            marcus_0x0 Marcus H added a comment -

            ikedam

            Works perfectly. Thanks a lot.

            marcus_0x0 Marcus H added a comment - ikedam Works perfectly. Thanks a lot.
            ikedam ikedam made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              marcus_0x0 Marcus H
              marcus_0x0 Marcus H
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: