diff --git a/jobs/JenkinsBackup/config.xml b/jobs/JenkinsBackup/config.xml new file mode 100644 index 0000000..d608cb4 --- /dev/null +++ b/jobs/JenkinsBackup/config.xml @@ -0,0 +1,42 @@ + + + + Makes a daily backup of the Jenkins Config files + false + + + + false + + + + true + false + false + false + + + 0 0 * * * + + + + false + + + echo "Backing up Jenkins config files from ${HOME}" +cd ${HOME} +git status + +echo "Finding added and changed files and committing to git" +git add * || true +git commit -a -m 'daily backup' || true +git push + +echo "Checking status is okay" +git status + + + + + + \ No newline at end of file diff --git a/jobs/JenkinsBackup/config.xml b/jobs/JenkinsBackup/config.xml new file mode 100644 index 0000000..d608cb4 --- /dev/null +++ b/jobs/JenkinsBackup/config.xml @@ -0,0 +1,42 @@ + + + + Makes a daily backup of the Jenkins Config files + false + + + + false + + + + true + false + false + false + + + 0 0 * * * + + + + false + + + echo "Backing up Jenkins config files from ${HOME}" +cd ${HOME} +git status + +echo "Finding added and changed files and committing to git" +git add * || true +git commit -a -m 'daily backup' || true +git push + +echo "Checking status is okay" +git status + + + + + + \ No newline at end of file diff --git a/queue.xml b/queue.xml index 7247d37..521faf9 100644 --- a/queue.xml +++ b/queue.xml @@ -1,5 +1,5 @@ - 668 + 670 \ No newline at end of file