Listener on Jenkins Job

26 Views Asked by At

Do you know if there's a way to create an external listener for a Jenkins job? (let's say in a Nodejs server).

I want to know the result of a job execution when it concludes and than persist it in a database.

I want to avoid polling it at an interval and running the risk it will disappear from Jenkins (the jobs disappear if the pipeline steps change or a number of jobs per pipe is reached).

You’re probably asking why I don’t just add the code for writing in the DB at the end of the job, directly in the Jenkins pipe. The reason is I am dealing with different kinds of jobs that I don’t have access to change.

Any ideas? Thank you.

0

There are 0 best solutions below