From c532beff21e724b945853714c266c769d93ffd6c Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 6 Sep 2023 17:42:33 -0400 Subject: [PATCH] Remove interactive shell so Windows AMI can start properly (#344) Signed-off-by: Peter Zhu --- lib/compute/agent-nodes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compute/agent-nodes.ts b/lib/compute/agent-nodes.ts index 53a7fa91..337985d3 100644 --- a/lib/compute/agent-nodes.ts +++ b/lib/compute/agent-nodes.ts @@ -210,7 +210,7 @@ export class AgentNodes { initScript: 'echo %USERNAME% && dockerd --register-service && net start docker && echo started docker deamon && docker ps && ' + 'echo initializing docker images now waiting for 5min && git clone https://github.com/opensearch-project/opensearch-build.git && ' + 'bash.exe -c "docker run --rm -it --name docker-windows-test -d `opensearch-build/docker/ci/get-ci-images.sh ' - + '-p windows2019-servercore -u opensearch -t build | head -1` bash.exe && sleep 5" && docker exec -it docker-windows-test whoami && ' + + '-p windows2019-servercore -u opensearch -t build | head -1` bash.exe && sleep 5" && docker exec docker-windows-test whoami && ' + 'docker ps && docker stop docker-windows-test && docker ps && rm -rf opensearch-build', remoteFs: 'C:/Users/Administrator/jenkins', }; @@ -227,7 +227,7 @@ export class AgentNodes { initScript: 'echo %USERNAME% && dockerd --register-service && net start docker && echo started docker deamon && docker ps && ' + 'echo initializing docker images now waiting for 5min && git clone https://github.com/opensearch-project/opensearch-build.git && ' + 'bash.exe -c "docker run --rm -it --name docker-windows-test -d `opensearch-build/docker/ci/get-ci-images.sh ' - + '-p windows2019-servercore -u opensearch -t build | head -1` bash.exe && sleep 5" && docker exec -it docker-windows-test whoami && ' + + '-p windows2019-servercore -u opensearch -t build | head -1` bash.exe && sleep 5" && docker exec docker-windows-test whoami && ' + 'docker ps && docker stop docker-windows-test && docker ps && rm -rf opensearch-build', remoteFs: 'C:/Users/Administrator/jenkins', };