Jenkins for running scripts!

I have over 30 scripts that are used to pull data and push data between different services. Its critical to know when they fail. Sure you could do this with cron but then I looked around and saw that Jenkins could run scripts and have a console output …

I have over 30 scripts that are used to pull data and push data between different services. Its critical to know when they fail. Sure you could do this with cron but then I looked around and saw that Jenkins could run scripts and have a console output log, and email me on fails.

After you have set up jenkins and set up the email settings.

  1. Create a freestyle project
    1. Build Triggers -> set your time so it runs whenever you want.
    2. Build Steps -> Add Build Step -> Execute Shell
      perl <my/path/to/script.pl
    3. Post Build -> Email Notification and make sure Send Email for every unstable build is checked.

This will get your scripts running and have email alerts on failed scripts. Its super helpful and its nice to have a decent web ui to automate and organize all these jobs I have to run.

If anyone has a better system / suggestion please let me know, I like what I have but I have been looking for something not so heavy on Java.


Print Share Comment Cite Upload Translate
APA
Scotticles | Sciencx (2024-03-29T12:06:55+00:00) » Jenkins for running scripts!. Retrieved from https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/.
MLA
" » Jenkins for running scripts!." Scotticles | Sciencx - Monday January 9, 2023, https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/
HARVARD
Scotticles | Sciencx Monday January 9, 2023 » Jenkins for running scripts!., viewed 2024-03-29T12:06:55+00:00,<https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/>
VANCOUVER
Scotticles | Sciencx - » Jenkins for running scripts!. [Internet]. [Accessed 2024-03-29T12:06:55+00:00]. Available from: https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/
CHICAGO
" » Jenkins for running scripts!." Scotticles | Sciencx - Accessed 2024-03-29T12:06:55+00:00. https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/
IEEE
" » Jenkins for running scripts!." Scotticles | Sciencx [Online]. Available: https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/. [Accessed: 2024-03-29T12:06:55+00:00]
rf:citation
» Jenkins for running scripts! | Scotticles | Sciencx | https://www.scien.cx/2023/01/09/jenkins-for-running-scripts/ | 2024-03-29T12:06:55+00:00
https://github.com/addpipe/simple-recorderjs-demo