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

DescribableHelper does not handle wildcards well

      org.jenkinsci.plugins.credentialsbinding.impl.BindingStep notes that while List<MultiBinding> bindings works fine, List<? extends MultiBinding<?>> does not, nor does List<MultiBinding<?>>.

          [JENKINS-26535] DescribableHelper does not handle wildcards well

          Alex Ouzounis added a comment - - edited

          trying to use properties in a MultiBranch Pipeline like so:

          properties( [ $class: 'GithubProjectProperty', displayName: '', projectUrlStr: 'https://github.com/xxx/yyy' ] )
          

          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 added a comment - - edited trying to use properties in a MultiBranch Pipeline like so: properties( [ $class: 'GithubProjectProperty' , displayName: '', projectUrlStr: ' https: //github.com/xxx/yyy' ] ) 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

          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
          http://jenkins-ci.org/commit/workflow-multibranch-plugin/06ba83c54aec8e8cacd34737d16667469383b5d7
          Log:
          JENKINS-26535 can be worked around using a collection of raw types.
          Originally-Committed-As: b5302ebc2e2479f03c538060460e43d0c1c0b47a

          SCM/JIRA link daemon added a comment - 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 http://jenkins-ci.org/commit/workflow-multibranch-plugin/06ba83c54aec8e8cacd34737d16667469383b5d7 Log: JENKINS-26535 can be worked around using a collection of raw types. Originally-Committed-As: b5302ebc2e2479f03c538060460e43d0c1c0b47a

          Andrew Bayer added a comment -

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

          Andrew Bayer added a comment - jglick - so does that mean we'd need to do something similar in junit to handle the TestDataPublisher use case?

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up for junit-plugin - https://github.com/jenkinsci/junit-plugin/pull/48

          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]

          SCM/JIRA link daemon added a comment - 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]

          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/JIRA link daemon added a comment - 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

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

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

          Günter Grodotzki added a comment - Related:  https://issues.jenkins-ci.org/browse/JENKINS-60155  (see:  https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/258#issuecomment-553405822 )

          Jesse Glick added a comment -

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

          Jesse Glick added a comment - lifeofguenter please use the Link system in JIRA to keep track of these things.

          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.

          Daniel Steiert added a comment - 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.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            15 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: