mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 09:42:38 -05:00
if apps crash on startup, then fail deploy process
we saw an issue where the app started, then immediately crashed due to a setup error. However, jenkins had already returned positively, and the deploy continued. cf-deploy should fail if the app doesn't start up. We do this by looking through the cloudfoundry events, and aborting if there are any `app.crash` events for the new GUID.
This commit is contained in:
@@ -55,8 +55,6 @@ function on_exit {
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "Application process terminated, waiting 10 seconds"
|
||||
sleep 10
|
||||
echo "Terminating remaining subprocesses.."
|
||||
kill 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user