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

Distinguish between manually triggered and auto triggered jobs

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • tfs-plugin
    • 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.

            jpricketmsft Jason Prickett
            salmen Salmen Taktak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: