Skip to content

Commit 931b8eb

Browse files
iQQBotroboquat
authored andcommitted
[integration-test] make ide integration-test work again
1 parent 797f440 commit 931b8eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.werft/ide-integration-tests-startup-vscode.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ pod:
148148
echo "start build preview environment, job name: ${BUILD_ID}, this will take long time" | werft log slice "build test environment"
149149
werft log result -d "build job" url "https://werft.gitpod-dev.com/job/${BUILD_ID}"
150150
151-
if ! werft job logs ${BUILD_ID} | werft log slice "build test environment";
151+
BUILD_STATUS=$(werft job get ${BUILD_ID} -o yaml | yq4 '.phase')
152+
until [ "$BUILD_STATUS" == "4" ]
153+
do
154+
sleep 10
155+
BUILD_STATUS=$(werft job get ${BUILD_ID} -o yaml | yq4 '.phase')
156+
done
157+
if ! [ "$(werft job get "${BUILD_ID}" -o yaml | yq4 '.conditions.success')" == "true" ];
152158
then
153159
echo "build failed" | werft log slice "build test environment"
154160
exit 1

0 commit comments

Comments
 (0)