Snippet generator does not generate valid code for ReverseBuildTrigger

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • Component/s: core, workflow-job-plugin
    • None
    • Environment:
      Jenkins 2.7.1
      workflow-job-plugin 2.9
      workflow-multibranch-plugin 2.9.2

      Using the snippet generator to generate the code for a reverse build trigger generates code like this:

      properties([pipelineTriggers([upstream(threshold: <object of type hudson.model.Result>, upstreamProjects: 'foo')])])
      

      The Result object needs to be displayed as e.g. hudson.model.Result.SUCCESS.

      I'm not sure in which component this needs to be fixed; I've filed against core (which implements ReverseBuildTrigger) and workflow-job-plugin (which defines pipelineTriggers).

            Assignee:
            Unassigned
            Reporter:
            Bruce Merry
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: