-
-
Save sohooo/46a3d612dd5db44ddca8480b4d06813c to your computer and use it in GitHub Desktop.
Revisions
-
alexsplashex revised this gist
Jan 18, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,4 +23,4 @@ fi git commit -m "Automated Jenkins commit" git push -q -u origin master -
alexsplashex revised this gist
Jan 18, 2019 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,4 @@ #!/bin/bash # Jenkins Configuraitons Directory cd $JENKINS_HOME @@ -23,6 +21,6 @@ if [ -n "$to_remove" ]; then git rm --ignore-unmatch $to_remove fi git commit -m "Automated Jenkins commit" ssh-agent sh -c 'ssh-add ~/.ssh/your_rsa_key; git push -q -u origin master' -
alexsplashex created this gist
Jan 18, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ #!/bin/bash # Jenkins Configuraitons Directory cd $JENKINS_HOME # Add general configurations, job configurations, and user content git add -- *.xml jobs/*/*.xml userContent/* ansible/* # only add user configurations if they exist if [ -d users ]; then user_configs=`ls users/*/config.xml` if [ -n "$user_configs" ]; then git add $user_configs fi fi # mark as deleted anything that's been, well, deleted to_remove=`git status | grep "deleted" | awk '{print $3}'` if [ -n "$to_remove" ]; then git rm --ignore-unmatch $to_remove fi git commit -m "Automated Jenkins privori commit" ssh-agent sh -c 'ssh-add ~/.ssh/your_rsa_key; git push -q -u origin master'