[2017-03-03 07:06:24] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Mirror git repository chmod +x /wwwroot/deployer/storage/app/tmp/ssh0knAnW export GIT_SSH=/wwwroot/deployer/storage/app/tmp/ssh0knAnW if [ ! -d /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git ]; then git clone --mirror git@bitbucket.org:toshyronet/dynaduo3.git /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git fi cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git git fetch --all --prune EOF [2017-03-03 07:06:25] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Get commit details - 386 cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git git log master -n1 --pretty=format:"%H%x09%an%x09%ae" EOF [2017-03-03 07:06:25] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Create release archive - 386 git clone --depth 1 --recursive /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git /wwwroot/deployer/storage/app/tmp/clone_12_20170303070624 cd /wwwroot/deployer/storage/app/tmp/clone_12_20170303070624 git checkout 138bde519bde04846d03fb7eba131b264ff67226 /wwwroot/deployer/resources/scripts/tools/GitArchiveAll.sh --tree-ish 138bde519bde04846d03fb7eba131b264ff67226 --format tar.gz --verbose /wwwroot/deployer/storage/app/12_20170303070623.tar.gz cd - rm -rf /wwwroot/deployer/storage/app/tmp/clone_12_20170303070624 EOF [2017-03-03 07:06:25] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### List git references cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git git tag --list --no-column EOF [2017-03-03 07:06:25] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### List git references cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dynaduo3.git git branch --list --no-column EOF [2017-03-03 07:06:26] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Send file to server - 386 rsync --verbose --compress --progress --out-format="Receiving %n" -e \ "ssh -p 22 \ -o CheckHostIP=no \ -o IdentitiesOnly=yes \ -o StrictHostKeyChecking=no \ -o PasswordAuthentication=no \ -o IdentityFile=/wwwroot/deployer/storage/app/tmp/keykrQGvf" \ /wwwroot/deployer/storage/app/12_20170303070623.tar.gz dynaduo@localhost:/wwwroot/dynaduo3-homolog/12_20170303070623.tar.gz EOF [2017-03-03 07:06:27] production.DEBUG: ### Run script over SSH ssh -o CheckHostIP=no \ -o IdentitiesOnly=yes \ -o StrictHostKeyChecking=no \ -o PasswordAuthentication=no \ -o IdentityFile=/wwwroot/deployer/storage/app/tmp/keykrQGvf \ -p 22 dynaduo@localhost 'bash -s' << 'EOF' # Turn on quit on non-zero exit set -e ### Create new release - 386 cd /wwwroot/dynaduo3-homolog # Create the releases directory if it doesn't exist if [ ! -d /wwwroot/dynaduo3-homolog/releases ]; then mkdir /wwwroot/dynaduo3-homolog/releases fi # Create the shared directory if it doesn't exist if [ ! -d /wwwroot/dynaduo3-homolog/shared ]; then mkdir /wwwroot/dynaduo3-homolog/shared fi mkdir /wwwroot/dynaduo3-homolog/releases/20170303070624 cd /wwwroot/dynaduo3-homolog/releases/20170303070624 # Extract the archive echo -e "Extracting...\n" tar -m --gunzip --verbose --extract --file=/wwwroot/dynaduo3-homolog/12_20170303070623.tar.gz --directory=/wwwroot/dynaduo3-homolog/releases/20170303070624 rm -f /wwwroot/dynaduo3-homolog/12_20170303070623.tar.gz EOF [2017-03-03 07:09:43] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Mirror git repository chmod +x /wwwroot/deployer/storage/app/tmp/sshuGuRXb export GIT_SSH=/wwwroot/deployer/storage/app/tmp/sshuGuRXb if [ ! -d /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git ]; then git clone --mirror git@bitbucket.org:toshyronet/dyn3-teste.git /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git fi cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git git fetch --all --prune EOF [2017-03-03 07:09:44] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Get commit details - 387 cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git git log master -n1 --pretty=format:"%H%x09%an%x09%ae" EOF [2017-03-03 07:09:44] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Create release archive - 387 git clone --depth 1 --recursive /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git /wwwroot/deployer/storage/app/tmp/clone_13_20170303070943 cd /wwwroot/deployer/storage/app/tmp/clone_13_20170303070943 git checkout 04bd8b0c6b47a97b95ea39ed9948f7bf268ae7ce /wwwroot/deployer/resources/scripts/tools/GitArchiveAll.sh --tree-ish 04bd8b0c6b47a97b95ea39ed9948f7bf268ae7ce --format tar.gz --verbose /wwwroot/deployer/storage/app/13_20170303070943.tar.gz cd - rm -rf /wwwroot/deployer/storage/app/tmp/clone_13_20170303070943 EOF [2017-03-03 07:09:46] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### Send file to server - 387 rsync --verbose --compress --progress --out-format="Receiving %n" -e \ "ssh -p 22 \ -o CheckHostIP=no \ -o IdentitiesOnly=yes \ -o StrictHostKeyChecking=no \ -o PasswordAuthentication=no \ -o IdentityFile=/wwwroot/deployer/storage/app/tmp/keyYjEeUG" \ /wwwroot/deployer/storage/app/13_20170303070943.tar.gz dynaduo@localhost:/wwwroot/teste-build/13_20170303070943.tar.gz EOF [2017-03-03 07:09:46] production.DEBUG: ### Run script over SSH ssh -o CheckHostIP=no \ -o IdentitiesOnly=yes \ -o StrictHostKeyChecking=no \ -o PasswordAuthentication=no \ -o IdentityFile=/wwwroot/deployer/storage/app/tmp/keyYjEeUG \ -p 22 dynaduo@localhost 'bash -s' << 'EOF' # Turn on quit on non-zero exit set -e ### Create new release - 387 cd /wwwroot/teste-build # Create the releases directory if it doesn't exist if [ ! -d /wwwroot/teste-build/releases ]; then mkdir /wwwroot/teste-build/releases fi # Create the shared directory if it doesn't exist if [ ! -d /wwwroot/teste-build/shared ]; then mkdir /wwwroot/teste-build/shared fi mkdir /wwwroot/teste-build/releases/20170303070943 cd /wwwroot/teste-build/releases/20170303070943 # Extract the archive echo -e "Extracting...\n" tar -m --gunzip --verbose --extract --file=/wwwroot/teste-build/13_20170303070943.tar.gz --directory=/wwwroot/teste-build/releases/20170303070943 rm -f /wwwroot/teste-build/13_20170303070943.tar.gz EOF [2017-03-03 07:09:47] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### List git references cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git git tag --list --no-column EOF [2017-03-03 07:09:47] production.DEBUG: ### Run script locally bash -s << 'EOF' # Turn on quit on non-zero exit set -e ### List git references cd /wwwroot/deployer/storage/app/mirrors/git_bitbucket.org_toshyronet_dyn3-teste.git git branch --list --no-column EOF