Aaron Trujillo Posted July 7, 2016 Posted July 7, 2016 I have a Jenkins job that runs clamav on some windows machines that i have. Â I would like to figure out a way that i can get notifications if a job doesnt run... is this something pulseway can do?
Administrators Paul Posted July 8, 2016 Administrators Posted July 8, 2016 Hi Aaron, Yes, you can generate a Pulseway notification with the help of the REST API: curl https://api.pulseway.com/v2/notifications \ Â Â -u username:apitoken \ Â Â -X POST \ Â Â -H "Content-Type: application/json" \ Â Â -d '{"instance_id":"instanceId","title":"Jenkins Job Failed","message":"The jenkins job has failed to run with error code 0x0800123 on Server01 in group Servers.","priority":"critical"}' Replace the instanceId with the system identifier of the agent installed on the jenkins machine, you can find it in the file:Â /var/pulseway/pulseway.id . Documentation here:Â https://api.pulseway.com/?shell#notify -Paul
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now