Skip to content

Instantly share code, notes, and snippets.

View ronensh-nice's full-sized avatar
🐌

ronen shurer ronensh-nice

🐌
View GitHub Profile
@ronensh-nice
ronensh-nice / jenkins-home-git.sh
Last active February 28, 2019 14:52 — forked from cenkalti/jenkins-home-git.sh
Backup Jenkins home periodicallly with git.
#!/bin/bash
# Setup
#
# - Create a new Jenkins Job
# - Mark "None" for Source Control Management
# - Select the "Build Periodically" build trigger
# - configure to run as frequently as you like
# - Add a new "Execute Shell" build step
# - Paste the contents of this file as the command