0

I have a groovy script to send notifications. I need to run this as post build after each of my job in jenkins. I need to do this without manually updating each job.

Problems faced:

  1. Tried to make this as jenkinsfile. But Pipleine script from perforce is buggy and cannot be used.

Any suggestions??

Jenisha
  • 225
  • 1
  • 2
  • 13

1 Answers1

0

You can run a script after any job using plugins. Post build task this plugin will be useful in your case. No manual work needed after configured.

SV Madhava Reddy
  • 1,858
  • 2
  • 15
  • 33
  • When there are hundreds of jobs, it is tough to go add the groovy script to each job. Is there any alternative? – Jenisha Feb 12 '18 at 11:09
  • If you are familiar, you can do that by `pipeline scripting`. [https://stackoverflow.com/questions/43227997/how-to-add-a-post-build-action-in-the-pipeline-in-jenkins](https://stackoverflow.com/questions/43227997/how-to-add-a-post-build-action-in-the-pipeline-in-jenkins). – SV Madhava Reddy Feb 12 '18 at 11:19