update
This commit is contained in:
@@ -113,11 +113,11 @@ jobs:
|
|||||||
export STATUS=$(curl -s $IP_ADDRESS)
|
export STATUS=$(curl -s $IP_ADDRESS)
|
||||||
if [ "$STATUS" == "building" ]; then
|
if [ "$STATUS" == "building" ]; then
|
||||||
echo "[$(date +%H:%M:%S)]: $STATUS"
|
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
|
sleep 300
|
||||||
((MINUTES_PAST += 5))
|
((MINUTES_PAST += 5))
|
||||||
else
|
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
|
echo "$STATUS" > /tmp/status
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -110,7 +110,8 @@ main() {
|
|||||||
# Build and Test Vagrant hosts
|
# Build and Test Vagrant hosts
|
||||||
cd Vagrant || exit 1
|
cd Vagrant || exit 1
|
||||||
build_vagrant_hosts
|
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
|
main
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user