Skip to content

Instantly share code, notes, and snippets.

@ryanpadilha
Created November 8, 2017 16:17
Show Gist options
  • Save ryanpadilha/dfcc8866b1e7a824c10cfd99f36e37ce to your computer and use it in GitHub Desktop.
Save ryanpadilha/dfcc8866b1e7a824c10cfd99f36e37ce to your computer and use it in GitHub Desktop.
#!/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