From a1019cdf968ce3a332b36512fdea5012bb7ce58f Mon Sep 17 00:00:00 2001 From: Adam Douglass Date: Fri, 3 Apr 2020 12:08:27 -0400 Subject: [PATCH] Azure Pipeline: make the wait for service up more robust --- pipelines/azure-build.yaml | 2 +- pipelines/azure-test.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/azure-build.yaml b/pipelines/azure-build.yaml index 22d869fd..187b08c4 100644 --- a/pipelines/azure-build.yaml +++ b/pipelines/azure-build.yaml @@ -91,7 +91,7 @@ stages: python -m assemblyline_ui.app & python -m assemblyline_ui.socketsrv & sudo docker run -d --name nginx --network host --restart on-failure -e "UI_HOST=localhost" -e "SOCKET_HOST=localhost" -e "KIBANA_HOST=localhost" -e "FQDN=localhost" sgaroncse/nginx-ssl:1.17.5 - wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 + wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 --retry-connrefused pytest -rsx -vv workingDirectory: $(Pipeline.Workspace)/test displayName: Test diff --git a/pipelines/azure-test.yaml b/pipelines/azure-test.yaml index 3d7dd828..5ba5edb8 100644 --- a/pipelines/azure-test.yaml +++ b/pipelines/azure-test.yaml @@ -105,7 +105,7 @@ jobs: python -m assemblyline_ui.app & python -m assemblyline_ui.socketsrv & sudo docker run -d --name nginx --network host --restart on-failure -e "UI_HOST=localhost" -e "SOCKET_HOST=localhost" -e "KIBANA_HOST=localhost" -e "FQDN=localhost" sgaroncse/nginx-ssl:1.17.5 - wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 + wget https://localhost --no-check-certificate --timeout=2 --retry-on-http-error=502 --waitretry=10 --retry-connrefused pytest -rsx -vv workingDirectory: $(Pipeline.Workspace)/s/assemblyline-ui displayName: Test