Skip to content

Commit 0b40a44

Browse files
Try to fix cucumber job output.
1 parent 4aac343 commit 0b40a44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,16 @@ jobs:
198198
id: cucumber_job
199199
continue-on-error: true
200200
run: |
201-
if ! kubectl wait --for=condition=complete --all jobs --timeout=30m; then
201+
if ! kubectl wait --for=condition=complete --all jobs --timeout=10s; then
202202
echo "::error::Kubectl timed out...";
203203
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp' 2> kube_events.log
204204
for pod in $(kubectl get pod --field-selector=status.phase==Running -o name); do
205205
echo "::debug:: Created logs for pod $pod";
206206
kubectl logs $pod --all-containers=true 2> ${pod}.log ;
207207
done;
208208
kubectl get pods 2> kube_status.log;
209-
echo "status=ERROR" >> $GITHUB_OUTPUT;
209+
echo "status='ERROR'" >> $GITHUB_OUTPUT;
210+
exit 1
210211
fi;
211212
echo "status=SUCCES" >> $GITHUB_OUTPUT;
212213
- name: Upload error logs

0 commit comments

Comments
 (0)