Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: workflow-multibranch-plugin
-
Labels:None
-
Environment:Jenkins 2.18
Latest plugins installed as of 8-17-16
-
Similar Issues:
Description
I was looking to use the new ability to trigger builds from a multi-branch project on a schedule.
To try to use it, I went to look for the docs for how to use it, but both the snippet generator and the doc failed.
For example, when you go to try to generate the trigger with a schedule of "H/15 * * * *", it generated the following:
properties [pipelineTriggers([]), [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], [$class: 'ThrottleJobProperty', categories: [], limitOneJobWithMatchingParams: false, maxConcurrentPerNode: 0, maxConcurrentTotal: 0, paramsToUseForLimit: '', throttleEnabled: false, throttleOption: 'project']]
So I then went to look at the pipeline syntax - but on that page, I then found the following:
{{$class: 'PipelineTriggersJobProperty'
triggers
Array/List:
java.lang.UnsupportedOperationException: do not know how to categorize attributes of type hudson.triggers.Trigger<?>
}}
I am also attaching a screenshot
Attachments
Issue Links
- depends on
-
JENKINS-26535 DescribableHelper does not handle wildcards well
-
- Open
-
- is related to
-
JENKINS-29711 Snippet Generator: missing attribute names in single-entry forms
-
- Resolved
-
-
JENKINS-34005 Make WorkflowJob.triggers into a JobProperty
-
- Resolved
-
- links to
Code changed in jenkins
User: Andrew Bayer
Path:
pom.xml
src/main/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStep.java
src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java
http://jenkins-ci.org/commit/workflow-multibranch-plugin/42c3b10d3e49fb1b41d3a2663610b2256bbdf055
Log:
Merge pull request #28 from abayer/jenkins-37477
Test for
JENKINS-37477Compare: https://github.com/jenkinsci/workflow-multibranch-plugin/compare/80120a5bbfb7...42c3b10d3e49