Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 0b2b525

Browse files
Tibor VassthaJeztah
authored andcommitted
Jenkinsfile: move integration step cleanup to amd64 where it was intended to be
Signed-off-by: Tibor Vass <[email protected]> (cherry picked from commit f3d8b8ae74804ba6a0386186c1c65bd1d556075a) Signed-off-by: Sebastiaan van Stijn <[email protected]> Upstream-commit: dfadf729d338b171451040fb31fd2b9c16c3ab3d Component: engine
1 parent 70b230e commit 0b2b525

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/engine/Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ pipeline {
332332
always {
333333
sh '''
334334
echo "Ensuring container killed."
335-
docker rm -vf docker-pr$BUILD_NUMBER || true
335+
cids=$(docker ps -aq -f name=docker-pr${BUILD_NUMBER}-*)
336+
[ -n "$cids" ] && docker rm -vf $cids || true
336337
'''
337338

338339
sh '''
@@ -701,8 +702,6 @@ pipeline {
701702
sh '''
702703
echo "Ensuring container killed."
703704
docker rm -vf docker-pr$BUILD_NUMBER || true
704-
cids=$(docker ps -aq -f name=docker-pr${BUILD_NUMBER}-*)
705-
[ -n "$cids" ] && docker rm -vf $cids || true
706705
'''
707706

708707
sh '''

0 commit comments

Comments
 (0)