Created
November 8, 2017 16:17
-
-
Save ryanpadilha/dfcc8866b1e7a824c10cfd99f36e37ce to your computer and use it in GitHub Desktop.
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 characters
#!/bin/bash | |
# | |
# Jenkins 2.73.2 instructions for execute backup from .zip files of Thinbackup plugin | |
cd /opt/backup/jenkins | |
# global configuration for first use | |
git config --global user.email "[email protected]" | |
git config --global user.name "Ryan Padilha" | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "there are changes"; | |
git add *.zip | |
git commit -m 'first zip files' | |
git push -u origin master | |
else | |
echo "no changes"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment