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

Snippet generator does not generate valid code for ReverseBuildTrigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core, workflow-job-plugin
    • None
    • 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).

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

              Created:
              Updated:
              Resolved: