[JIRA] (JENKINS-58986) Distinguish between manually triggered and auto triggered jobs

6 views
Skip to first unread message

taktak.salmen@gmail.com (JIRA)

unread,
Aug 19, 2019, 3:35:02 AM8/19/19
to jenkinsc...@googlegroups.com
Salmen Taktak created an issue
 
Jenkins / Task JENKINS-58986
Distinguish between manually triggered and auto triggered jobs
Issue Type: Task Task
Assignee: redsolo
Components: tfs-plugin
Created: 2019-08-19 07:34
Environment: Jenkins ver. 2.164.1
tfs-plugin 5.139.2
Labels: plugin buildCause tfs
Priority: Major Major
Reporter: Salmen Taktak

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

taktak.salmen@gmail.com (JIRA)

unread,
Aug 19, 2019, 6:14:01 AM8/19/19
to jenkinsc...@googlegroups.com
Salmen Taktak assigned an issue to Jason Prickett
 

Any help or feedback please

Change By: Salmen Taktak
Assignee: redsolo Jason Prickett

tobias-jenkins@23.gs (JIRA)

unread,
Mar 11, 2020, 5:31:03 AM3/11/20
to jenkinsc...@googlegroups.com
Tobias Gruetzmacher commented on Task JENKINS-58986
 
Re: Distinguish between manually triggered and auto triggered jobs

Looks like a bug to me in whatever triggers the build, otherwise the build cause should be a different class (for example jenkins.branch.BranchEventCause or hudson.triggers.TimerTrigger$TimerTriggerCause)

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages