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

Developer would like to see why the Pipeline has been triggered

    Details

    • Similar Issues:
    • Sprint:
      1.0, Blue Ocean - 1.1-beta2

      Description

      Scope

      • We want to show in this area the reason the run was triggered e.g. "Manual run by John"

      • If there is no "commit message" then the Message cell should be the trigger reason.

      Notes
      Would be good to do in conjunction with JENKINS-39860.

      Technical details
      There should be an action on each run like:

      {
            "_class": "hudson.model.CauseAction",
            "_links": {
              "self": {
                "_class": "io.jenkins.blueocean.rest.hal.Link",
                "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/master/runs/655/cause/"
              }
            },
            "causes": [
              {
                "_class": "jenkins.branch.BranchEventCause",
                "shortDescription": "Branch event"
              }
            ],
            "urlName": "cause"
          }
      

      You want to pick the first "cause" from that array. Every cause has a shortDescription.

      EDIT: I realise in this example that the cause is pretty meaningless to users and have asked for this particular description to be fixed in JENKINS-41736.

        Attachments

        1. Aborted.png
          Aborted.png
          134 kB
        2. message.png
          message.png
          131 kB
        3. upload-3.png
          upload-3.png
          180 kB

          Issue Links

            Activity

            jamesdumay James Dumay created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Epic Link JENKINS-35755 [ 171716 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Description *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
            *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
            * If there is no "commit message" then the Message column should be the trigger reason.
            jamesdumay James Dumay made changes -
            Sprint post-release [ 181 ] iapetus [ 216 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Assignee Brody Maclean [ brody ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            brody Brody Maclean made changes -
            Attachment Aborted.png [ 35764 ]
            jamesdumay James Dumay made changes -
            Attachment blueocean 2017-02-06 09-30-21.png [ 35765 ]
            jamesdumay James Dumay made changes -
            Attachment  blueocean 2017-02-06 09-30-21.png [ 35765 ]
            jamesdumay James Dumay made changes -
            Attachment message.png [ 35766 ]
            jamesdumay James Dumay made changes -
            Description *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
            * If there is no "commit message" then the Message column should be the trigger reason.
            *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message column should be the trigger reason.
             !message.png|thumbnail!
            jamesdumay James Dumay made changes -
            Description *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message column should be the trigger reason.
             !message.png|thumbnail!
            *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message cell should be the trigger reason.
             !message.png|thumbnail!
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-35755 [ 171716 ] JENKINS-35750 [ 171713 ]
            jamesdumay James Dumay made changes -
            Assignee Brody Maclean [ brody ] Michael Neale [ michaelneale ]
            jamesdumay James Dumay made changes -
            Assignee Michael Neale [ michaelneale ] Josh McDonald [ sophistifunk ]
            jamesdumay James Dumay made changes -
            Sprint iapetus [ 216 ]
            jamesdumay James Dumay made changes -
            Sprint panthalassa [ 221 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Link This issue relates to JENKINS-39860 [ JENKINS-39860 ]
            jamesdumay James Dumay made changes -
            Description *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message cell should be the trigger reason.
             !message.png|thumbnail!
            *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message cell should be the trigger reason.
             !message.png|thumbnail!

            *Notes*
            Would be good to do in conjunction with JENKINS-39860.
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Link This issue relates to JENKINS-41736 [ JENKINS-41736 ]
            jamesdumay James Dumay made changes -
            Description *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message cell should be the trigger reason.
             !message.png|thumbnail!

            *Notes*
            Would be good to do in conjunction with JENKINS-39860.
            *Scope*
            * We want to show in this area the reason the run was triggered e.g. "Manual run by John"
             !Aborted.png|thumbnail!
             !upload-3.png|thumbnail!
            * If there is no "commit message" then the Message cell should be the trigger reason.
             !message.png|thumbnail!

            *Notes*
            Would be good to do in conjunction with JENKINS-39860.

            *Technical details*
            There should be an action on each run like:
            {code}
            {
                  "_class": "hudson.model.CauseAction",
                  "_links": {
                    "self": {
                      "_class": "io.jenkins.blueocean.rest.hal.Link",
                      "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/master/runs/655/cause/"
                    }
                  },
                  "causes": [
                    {
                      "_class": "jenkins.branch.BranchEventCause",
                      "shortDescription": "Branch event"
                    }
                  ],
                  "urlName": "cause"
                }
            {code}

            You want to pick the first "cause" from that array. Every cause has a {{shortDescription}}.

            EDIT: I realise in this example that the cause is pretty meaningless to users and have asked for this particular description to be fixed in JENKINS-41736.
            jamesdumay James Dumay made changes -
            Comment [ There should be an action on each run like:
            {code}
            {
                  "_class": "hudson.model.CauseAction",
                  "_links": {
                    "self": {
                      "_class": "io.jenkins.blueocean.rest.hal.Link",
                      "href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/master/runs/655/cause/"
                    }
                  },
                  "causes": [
                    {
                      "_class": "jenkins.branch.BranchEventCause",
                      "shortDescription": "Branch event"
                    }
                  ],
                  "urlName": "cause"
                }
            {code}

            You want to pick the first "cause" from that array. Every cause has a {{shortDescription}}.

            EDIT: I realise in this example that the cause is pretty meaningless to users and have asked for this particular description to be fixed in JENKINS-41736. ]
            jamesdumay James Dumay made changes -
            Sprint panthalassa [ 221 ] release candidate [ 171 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Sprint up next [ 171 ] panthalassa [ 221 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Sprint panthalassa [ 221 ] up next [ 171 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Sprint up next [ 171 ] 1.0 [ 221 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Priority Major [ 3 ] Minor [ 4 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Sprint 1.0 [ 221 ] 1.1 [ 251 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Assignee Josh McDonald [ sophistifunk ]
            jamesdumay James Dumay made changes -
            Sprint 1.1 [ 251 ] 1.0 [ 221 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Labels newbie-friendly
            jamesdumay James Dumay made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            jamesdumay James Dumay made changes -
            Sprint 1.0 [ 221 ] 1.0, 1.0-rc1 [ 221, 261 ]
            jamesdumay James Dumay made changes -
            Sprint 1.0, 1.0-rc1 [ 221, 261 ] 1.0 [ 221 ]
            jamesdumay James Dumay made changes -
            Sprint 1.0 [ 221 ] 1.0, release candidates [ 221, 256 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Sprint 1.0, release candidates [ 221, 256 ] 1.0, 1.1 [ 221, 251 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Sprint 1.0, up next [ 221, 251 ] 1.0, Blue Ocean 1.1 [ 221, 271 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Link This issue is duplicated by JENKINS-43187 [ JENKINS-43187 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Labels newbie-friendly newbie-friendly pipeline-improvement
            jamesdumay James Dumay made changes -
            Sprint 1.0, Blue Ocean 1.1 [ 221, 271 ] 1.0, Blue Ocean 1.2 [ 221, 296 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            michaelneale Michael Neale made changes -
            Link This issue is blocked by JENKINS-41736 [ JENKINS-41736 ]
            jamesdumay James Dumay made changes -
            Assignee James Dumay [ jamesdumay ]
            jamesdumay James Dumay made changes -
            Sprint 1.0, Blue Ocean 1.2 [ 221, 296 ] 1.0, Blue Ocean - 1.1-beta2 [ 221, 306 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            jamesdumay James Dumay made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jamesdumay James Dumay made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jamesdumay James Dumay made changes -
            Link This issue is duplicated by JENKINS-43187 [ JENKINS-43187 ]
            jamesdumay James Dumay made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jamesdumay James Dumay made changes -
            Issue Type Task [ 3 ] Story [ 10002 ]

              People

              • Assignee:
                jamesdumay James Dumay
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: