Skip to content

Commit 1e0baa3

Browse files
committed
Archive backend coverage in ci
1 parent d8a3726 commit 1e0baa3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Jenkinsfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import groovy.transform.Field
22

33
@Field
4-
def shOutput = ""
54
def buildxPushTags = ""
65

76
def getVersion() {
@@ -85,10 +84,8 @@ pipeline {
8584
}
8685
post {
8786
success {
87+
archiveArtifacts allowEmptyArchive: false, artifacts: 'coverage.html'
8888
archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*'
89-
script {
90-
shOutput = ""
91-
}
9289
}
9390
}
9491
}

scripts/ci/test-backend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ if [ "${1:-}" = "--inside-docker" ]; then
4646
go test -json -cover -coverprofile="$DIR/../../coverage.out" ./internal/... | tparse
4747
go tool cover -html="$DIR/../../coverage.out" -o "$DIR/../../coverage.html"
4848
rm -f "$DIR/../../coverage.out"
49+
chown 1000:1000 "$DIR/../../coverage.html"
4950
golangci-lint -v run ./...
5051
else
5152
# run this script from within docker

0 commit comments

Comments
 (0)