Skip to content

Commit

Permalink
ci: set proper parameters for the tar step (#4696) (#4743)
Browse files Browse the repository at this point in the history
* fix: set proper parameters for the tar step

* fix: move everything to the build folder
  • Loading branch information
kuisathaverat authored Mar 8, 2021
1 parent 1548471 commit fe2472d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .ci/scripts/docker-get-logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

STEP=${1:-""}

DOCKER_INFO_DIR="docker-info/${STEP}"
DOCKER_INFO_DIR="build/docker-info/${STEP}"
mkdir -p ${DOCKER_INFO_DIR}
cp docker-compose*.yml ${DOCKER_INFO_DIR}
cd ${DOCKER_INFO_DIR}
Expand Down
35 changes: 19 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,15 @@ pipeline {
}
post {
always {
coverageReport("${BASE_DIR}/build/coverage")
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "${BASE_DIR}/build/junit-*.xml"
)
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
tar(file: "coverage-files.tgz", archive: true, dir: "coverage", pathPrefix: "${BASE_DIR}/build")
dir("${BASE_DIR}/build"){
coverageReport("coverage")
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "junit-*.xml"
)
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
tar(file: "coverage-files.tgz", archive: true, dir: "coverage")
}
}
codecov(repo: env.REPO, basedir: "${BASE_DIR}", secret: "${CODECOV_SECRET}")
}
Expand Down Expand Up @@ -293,17 +295,18 @@ pipeline {
}
post {
always {
dir("${BASE_DIR}"){
dir("${BASE_DIR}/build"){
archiveArtifacts(allowEmptyArchive: true,
artifacts: "docker-info/**",
defaultExcludes: false)
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "**/build/TEST-*.xml"
)
}
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
tar(file: "system-tests-linux-files.tgz", archive: true, dir: "system-tests", pathPrefix: "${BASE_DIR}/build")
defaultExcludes: false
)
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "**/TEST-*.xml"
)
catchError(buildResult: 'SUCCESS', message: 'Failed to grab test results tar files', stageResult: 'SUCCESS') {
tar(file: "system-tests-linux-files.tgz", archive: true, dir: "system-tests")
}
}
}
}
Expand Down

0 comments on commit fe2472d

Please sign in to comment.