How to change the jenkins job status to PASS/FAIL?

62 views
Skip to first unread message

Neel Desai

unread,
Oct 19, 2017, 9:36:00 AM10/19/17
to Jenkins Users
Hello All,


I want to change the status of my jenkins job based on the result of other parameter's value. How can I do that? I would prefer the through Jenkins REST API. If I can change with rest api, then it would be best solution.


THanks,
Neel Desai

Viacheslav Dubrovskyi

unread,
Oct 19, 2017, 10:40:55 AM10/19/17
to jenkins...@googlegroups.com

Hi Neel,

It depends what type of job do you have.

For pipeline you can look to this article https://support.cloudbees.com/hc/en-us/articles/218554077-How-to-set-current-build-result-in-Pipeline-


19.10.2017 16:31, Neel Desai пишет:
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c9f12e36-993a-4fc3-a4d7-63336bc36a72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
WBD,
Viacheslav Dubrovskyi
Reply all
Reply to author
Forward
0 new messages