[JIRA] [workflow-plugin] (JENKINS-26535) DescribableHelper does not handle wildcards well

0 views
Skip to first unread message

scm_issue_link@java.net (JIRA)

unread,
Oct 28, 2015, 2:58:03 PM10/28/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-26535
 
Re: DescribableHelper does not handle wildcards well

Code changed in jenkins
User: Jesse Glick
Path:
multibranch/src/main/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStep.java
multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java
step-api/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java
http://jenkins-ci.org/commit/workflow-plugin/b5302ebc2e2479f03c538060460e43d0c1c0b47a
Log:
JENKINS-26535 can be worked around using a collection of raw types.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

pedro@algarvio.me (JIRA)

unread,
Feb 1, 2016, 10:12:03 AM2/1/16
to jenkinsc...@googlegroups.com

I have, as a final pipeline step, the following:

step([$class: 'JUnitResultArchiver', allowEmptyResults: true, keepLongStdio: true, testDataPublishers: [[$class: 'StabilityTestDataPublisher']], testResults: 'test-results.xml'])

If I comment out that last step, the build completes as it should, successfully, however, if that step is present:

[Pipeline] } //withEnv
[Pipeline] Set environment variables : End
[Pipeline] step
[Pipeline] } //timeout
[Pipeline] Enforce time limit : End
[Pipeline] } //parallel
[Pipeline] Execute sub-workflows in parallel : End
[Pipeline] } //wrap
[Pipeline] General Build Wrapper : End
[Pipeline] } //wrap
[Pipeline] General Build Wrapper : End
[Pipeline] } //node
[Pipeline] Allocate node : End
[Pipeline] End of Pipeline
org.jenkinsci.plugins.workflow.cps.steps.ParallelStepException: Parallel step unit failed
	at org.jenkinsci.plugins.workflow.cps.steps.ParallelStep$ResultHandler$Callback.checkAllDone(ParallelStep.java:153)
	at org.jenkinsci.plugins.workflow.cps.steps.ParallelStep$ResultHandler$Callback.onFailure(ParallelStep.java:119)
	at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:294)
	at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:58)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:277)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:77)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:186)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:184)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsupportedOperationException: JENKINS-26535: do not know how to handle ? extends hudson.tasks.junit.TestDataPublisher
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:574)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.mapList(DescribableHelper.java:603)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:588)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:524)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.injectSetters(DescribableHelper.java:663)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:98)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:576)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.buildArguments(DescribableHelper.java:524)
	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:96)
	at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:103)
	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:133)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:112)
	at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1144)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1038)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:723)
	at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
	at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1144)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1038)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
	at WorkflowScript.run(WorkflowScript:63)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:55)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:106)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:79)
	at sun.reflect.GeneratedMethodAccessor466.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
	at sun.reflect.GeneratedMethodAccessor449.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	... 17 more
Finished: FAILURE

scm_issue_link@java.net (JIRA)

unread,
Mar 10, 2016, 1:13:02 PM3/10/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
plugin/src/main/java/org/jenkinsci/plugins/symbol/describable/DescribableModel.java
http://jenkins-ci.org/commit/symbol-plugin/f467a821c1139b55cc74f4b8a11e81393bb71cef
Log:
JENKINS-26535 tiger-types to the rescue

alex.ouzounis@me.com (JIRA)

unread,
Mar 25, 2016, 8:25:02 AM3/25/16
to jenkinsc...@googlegroups.com

trying to use properties in a MultiBranch Pipeline like so:
```
properties( [ $class: 'GithubProjectProperty', displayName: '', projectUrlStr: 'https://git.corp.adobe.com/hoolihan/lumberyard/' ] )
```
but I get:
```
java.lang.UnsupportedOperationException: JENKINS-26535: do not know how to handle java.util.List<hudson.model.JobProperty>
```
My understanding from http://stackoverflow.com/questions/35370810/how-do-i-use-jenkins-pipeline-properties-step#35471196 was that the properties syntax was working but maybe i am wrong.


Jenkins LTS 1.642.2 , Pipeline Branch 1.15

alex.ouzounis@me.com (JIRA)

unread,
Mar 25, 2016, 8:27:03 AM3/25/16
to jenkinsc...@googlegroups.com
Alex Ouzounis edited a comment on Bug JENKINS-26535
trying to use properties in a MultiBranch Pipeline like so:
``` {code:java}
properties( [ $class: 'GithubProjectProperty', displayName: '', projectUrlStr: 'https://git.corp.adobe.com/hoolihan/lumberyard/' ] )
``` {code}
but I get:
``` {code:java}
java.lang.UnsupportedOperationException: JENKINS-26535: do not know how to handle java.util.List<hudson.model.JobProperty>
``` {code}

My understanding from http://stackoverflow.com/questions/35370810/how-do-i-use-jenkins-pipeline-properties-step#35471196 was that the properties syntax was working but maybe i am wrong.
-----

Jenkins LTS 1.642.2 , Pipeline Branch 1.15

alex.ouzounis@me.com (JIRA)

unread,
Mar 25, 2016, 8:28:02 AM3/25/16
to jenkinsc...@googlegroups.com
Alex Ouzounis edited a comment on Bug JENKINS-26535
trying to use properties in a MultiBranch Pipeline like so:
{code:java}
properties( [ $class: 'GithubProjectProperty', displayName: '', projectUrlStr: 'https:// git github . corp.adobe. com/ hoolihan xxx / lumberyard/ yyy ' ] )

{code}
but I get:
{code:java}
java.lang.UnsupportedOperationException: JENKINS-26535: do not know how to handle java.util.List<hudson.model.JobProperty>
{code}

My understanding from http://stackoverflow.com/questions/35370810/how-do-i-use-jenkins-pipeline-properties-step#35471196 was that the properties syntax was working but maybe i am wrong.
-----
Jenkins LTS 1.642.2 , Pipeline Branch 1.15

scm_issue_link@java.net (JIRA)

unread,
Apr 5, 2016, 4:31:36 PM4/5/16
to jenkinsc...@googlegroups.com

Code changed in jenkins


User: Jesse Glick
Path:
multibranch/src/main/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStep.java
multibranch/src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java


Log:
JENKINS-26535 can be worked around using a collection of raw types.

Originally-Committed-As: b5302ebc2e2479f03c538060460e43d0c1c0b47a

andrew.bayer@gmail.com (JIRA)

unread,
Jun 13, 2016, 2:05:01 PM6/13/16
to jenkinsc...@googlegroups.com

Jesse Glick - so does that mean we'd need to do something similar in junit to handle the TestDataPublisher use case?

jglick@cloudbees.com (JIRA)

unread,
Jun 13, 2016, 6:29:03 PM6/13/16
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Jenkins / Bug JENKINS-26535
Change By: Jesse Glick
Component/s: structs-plugin
Component/s: workflow-plugin

jglick@cloudbees.com (JIRA)

unread,
Jun 13, 2016, 6:29:04 PM6/13/16
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Feb 26, 2018, 4:24:02 PM2/26/18
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
Change By: Jesse Glick
Assignee: Jesse Glick
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

scm_issue_link@java.net (JIRA)

unread,
Apr 17, 2018, 10:58:05 AM4/17/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Robert Sandell
Path:
src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest.java
http://jenkins-ci.org/commit/github-branch-source-plugin/2aaa13771c05c784bfff060856ed6c4d055bf6f1
Log:
Merge pull request #174 from daspilker/JENKINS-45860

JENKINS-45860 added a workaround for JENKINS-26535

Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/66373c2859f1...2aaa13771c05

scm_issue_link@java.net (JIRA)

unread,
Apr 17, 2018, 10:58:06 AM4/17/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Daniel Spilker
Path:
src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest.java
http://jenkins-ci.org/commit/github-branch-source-plugin/745dfbfe4f8002b085386e8da8a9416a964472d2
Log:


added a workaround for JENKINS-26535

[FIXES JENKINS-45860]

mail@daniel-spilker.com (JIRA)

unread,
Aug 19, 2019, 3:19:05 PM8/19/19
to jenkinsc...@googlegroups.com

PR that will improve support for parameterized types:
https://github.com/jenkinsci/structs-plugin/pull/52

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

gunter@grodotzki.co.za (JIRA)

unread,
Nov 14, 2019, 4:20:03 AM11/14/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Nov 14, 2019, 9:42:06 AM11/14/19
to jenkinsc...@googlegroups.com

Gunter Grodotzki please use the Link system in JIRA to keep track of these things.

gunter@grodotzki.co.za (JIRA)

unread,
Nov 15, 2019, 6:09:04 AM11/15/19
to jenkinsc...@googlegroups.com

daniel.steiert@mail.de (JIRA)

unread,
Mar 4, 2020, 7:16:02 AM3/4/20
to jenkinsc...@googlegroups.com
Daniel Steiert commented on Bug JENKINS-26535
 
Re: DescribableHelper does not handle wildcards well

We have an issue which depends on this in a few ways. Without it being fixed, we are stuck with a Jenkins that keeps rerunning a whole bunch of jobs every day for no reason besides it being a bug.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages