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

PipelineTriggersJobProperty / pipelineTriggers() - snippet generator and syntax doc fail

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.18
      Latest plugins installed as of 8-17-16

      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

          [JENKINS-37477] PipelineTriggersJobProperty / pipelineTriggers() - snippet generator and syntax doc fail

          Greg Smith created issue -
          Greg Smith made changes -
          Link New: This issue is related to JENKINS-34005 [ JENKINS-34005 ]
          Matthew DeTullio made changes -
          Component/s New: workflow-multibranch-plugin [ 21465 ]
          Component/s Original: multi-branch-project-plugin [ 21127 ]
          Matthew DeTullio made changes -
          Assignee Original: Matthew DeTullio [ mjdetullio ] New: Jesse Glick [ jglick ]
          Andrew Bayer made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Andrew Bayer [ abayer ]
          Greg Smith made changes -
          Attachment New: Screen Shot 2016-08-22 at 9.36.12 AM.png [ 33686 ]
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-26535 [ JENKINS-26535 ]
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "Workflow Job plugin PR #17 (Web Link)" [ 14750 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "Multibranch plugin PR #28 (test) (Web Link)" [ 14751 ]

            abayer Andrew Bayer
            gregcovertsmith Greg Smith
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: