Skip to content

Instantly share code, notes, and snippets.

View delphym's full-sized avatar
🏠
Studying WB DEVELOPMENT with Dev Academy

DelphyM delphym

🏠
Studying WB DEVELOPMENT with Dev Academy
View GitHub Profile
@delphym
delphym / jenkins-home-git.sh
Last active June 28, 2018 08:49 — forked from cenkalti/jenkins-home-git.sh
Backup Jenkins home periodicallly with git.
#!/bin/bash
# Script origin @ https://gist.github.com/delphym/687927bf521f598714e27804304ceca4
# 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