Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit fb67b52

Browse files
josephcatravis1111
andauthored
Fix build failure issue on post steps and move it within test stage (#121)
* junit test (#119) Signed-off-by: tiaoyuw <tiaoyuw@ca.ibm.com> * Move post steps to test stage Co-authored-by: travis1111 <35569780+travis1111@users.noreply.github.com>
1 parent 5d3cefc commit fb67b52

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

Jenkinsfile

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,26 @@ pipeline {
4545
rm $WORKSPACE/dev/ant_build/artifacts/codewind-openapi-eclipse-test-*.zip
4646
'''
4747
} finally {
48-
junit 'dev/junit-results.xml'
48+
junit 'dev/junit-results.xml'
4949
}
5050
dir('dev') {
5151
stash name: 'codewind-openapi-eclipse-zip', includes: 'ant_build/artifacts/codewind-openapi-eclipse-*.zip'
5252
}
5353
}
5454
}
55+
post {
56+
always {
57+
sh '''#!/usr/bin/env bash
58+
# Docker system prune
59+
echo "Docker system prune ..."
60+
docker system df
61+
docker system prune -a --volumes -f
62+
docker builder prune -a -f
63+
docker system df
64+
df -lh
65+
'''
66+
}
67+
}
5568
}
5669

5770
stage('Deploy') {
@@ -119,18 +132,4 @@ pipeline {
119132
}
120133
}
121134
}
122-
123-
post {
124-
always {
125-
sh '''#!/usr/bin/env bash
126-
# Docker system prune
127-
echo "Docker system prune ..."
128-
docker system df
129-
docker system prune -a --volumes -f
130-
docker builder prune -a -f
131-
docker system df
132-
df -lh
133-
'''
134-
}
135-
}
136135
}

0 commit comments

Comments
 (0)