Distinguish between manually triggered and auto triggered jobs

XMLWordPrintable

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major
    • Component/s: tfs-plugin
    • Environment:
      Jenkins ver. 2.164.1
      tfs-plugin 5.139.2

      I couldn't find a way to distinguish between manually triggered and auto triggered jobs in my pipeline script, using tfs-plugin. What ever i trigger the build mannually or by a code push the result of "currentBuild.getBuildCauses()" : 
      [\{"_class":"hudson.model.Cause$UserIdCause","shortDescription":"Démarré par l'utilisateur Admin Jenkins","userId":"admin","userName":"Admin Jenkins"}]
      I think that the Cause class https://javadoc.jenkins-ci.org/hudson/model/Cause.html should be extended  to keep track of why a given build was started.

            Assignee:
            Jason Prickett
            Reporter:
            Salmen Taktak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: