Skip to content

Commit 94f58d8

Browse files
committed
ci: set proper parameters for the tar step (#4696)
* fix: set proper parameters for the tar step * fix: move everything to the build folder
1 parent 2274304 commit 94f58d8

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

.ci/scripts/docker-get-logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
STEP=${1:-""}
55

6-
DOCKER_INFO_DIR="docker-info/${STEP}"
6+
DOCKER_INFO_DIR="build/docker-info/${STEP}"
77
mkdir -p ${DOCKER_INFO_DIR}
88
cp docker-compose*.yml ${DOCKER_INFO_DIR}
99
cd ${DOCKER_INFO_DIR}

Jenkinsfile

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,15 @@ pipeline {
249249
}
250250
post {
251251
always {
252-
coverageReport("${BASE_DIR}/build/coverage")
253-
junit(allowEmptyResults: true,
254-
keepLongStdio: true,
255-
testResults: "${BASE_DIR}/build/junit-*.xml"
256-
)
257-
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
258-
tar(file: "coverage-files.tgz", archive: true, dir: "coverage", pathPrefix: "${BASE_DIR}/build")
252+
dir("${BASE_DIR}/build"){
253+
coverageReport("coverage")
254+
junit(allowEmptyResults: true,
255+
keepLongStdio: true,
256+
testResults: "junit-*.xml"
257+
)
258+
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
259+
tar(file: "coverage-files.tgz", archive: true, dir: "coverage")
260+
}
259261
}
260262
codecov(repo: env.REPO, basedir: "${BASE_DIR}", secret: "${CODECOV_SECRET}")
261263
}
@@ -291,17 +293,18 @@ pipeline {
291293
}
292294
post {
293295
always {
294-
dir("${BASE_DIR}"){
296+
dir("${BASE_DIR}/build"){
295297
archiveArtifacts(allowEmptyArchive: true,
296298
artifacts: "docker-info/**",
297-
defaultExcludes: false)
298-
junit(allowEmptyResults: true,
299-
keepLongStdio: true,
300-
testResults: "**/build/TEST-*.xml"
301-
)
302-
}
303-
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
304-
tar(file: "system-tests-linux-files.tgz", archive: true, dir: "system-tests", pathPrefix: "${BASE_DIR}/build")
299+
defaultExcludes: false
300+
)
301+
junit(allowEmptyResults: true,
302+
keepLongStdio: true,
303+
testResults: "**/TEST-*.xml"
304+
)
305+
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
306+
tar(file: "system-tests-linux-files.tgz", archive: true, dir: "system-tests")
307+
}
305308
}
306309
}
307310
}

0 commit comments

Comments
 (0)