update
This commit is contained in:
@@ -113,11 +113,11 @@ jobs:
|
||||
export STATUS=$(curl -s $IP_ADDRESS)
|
||||
if [ "$STATUS" == "building" ]; then
|
||||
echo "[$(date +%H:%M:%S)]: $STATUS"
|
||||
scp -q -i ~/.ssh/id_rsa root@"$IP_ADDRESS":/opt/DetectionLab/Vagrant/vagrant_up_*.log /tmp/artifacts/ || echo "Vagrant log not yet present"
|
||||
scp -q -i ~/.ssh/id_rsa root@"$IP_ADDRESS":/opt/DetectionLab/Vagrant/*.log /tmp/artifacts/ || echo "Vagrant log not yet present"
|
||||
sleep 300
|
||||
((MINUTES_PAST += 5))
|
||||
else
|
||||
scp -q -i ~/.ssh/id_rsa root@"$IP_ADDRESS":/opt/DetectionLab/Vagrant/vagrant_up_*.log /tmp/artifacts/ || echo "Vagrant log not yet present"
|
||||
scp -q -i ~/.ssh/id_rsa root@"$IP_ADDRESS":/opt/DetectionLab/Vagrant/*.log /tmp/artifacts/ || echo "Vagrant log not yet present"
|
||||
echo "$STATUS" > /tmp/status
|
||||
break
|
||||
fi
|
||||
|
||||
@@ -110,7 +110,8 @@ main() {
|
||||
# Build and Test Vagrant hosts
|
||||
cd Vagrant || exit 1
|
||||
build_vagrant_hosts
|
||||
/bin/bash "$DL_DIR/Vagrant/post_build_checks.sh"
|
||||
/bin/bash "$DL_DIR/Vagrant/post_build_checks.sh" > $DL_DIR/Vagrant/post_build.log
|
||||
exit 0
|
||||
}
|
||||
main
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user