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

Snippet generator does not generate valid code for ReverseBuildTrigger

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core, workflow-job-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.7.1
      workflow-job-plugin 2.9
      workflow-multibranch-plugin 2.9.2
    • Similar Issues:

      Description

      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).

        Attachments

          Issue Links

            Activity

            bmerry Bruce Merry created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-34464 [ JENKINS-34464 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: