Archive backend coverage in ci

This commit is contained in:
Jamie Curnow 2023-07-27 13:50:13 +10:00
parent d8a3726f3a
commit 1e0baa3911
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
2 changed files with 2 additions and 4 deletions

5
Jenkinsfile vendored
View File

@ -1,7 +1,6 @@
import groovy.transform.Field
@Field
def shOutput = ""
def buildxPushTags = ""
def getVersion() {
@ -85,10 +84,8 @@ pipeline {
}
post {
success {
archiveArtifacts allowEmptyArchive: false, artifacts: 'coverage.html'
archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*'
script {
shOutput = ""
}
}
}
}

View File

@ -46,6 +46,7 @@ if [ "${1:-}" = "--inside-docker" ]; then
go test -json -cover -coverprofile="$DIR/../../coverage.out" ./internal/... | tparse
go tool cover -html="$DIR/../../coverage.out" -o "$DIR/../../coverage.html"
rm -f "$DIR/../../coverage.out"
chown 1000:1000 "$DIR/../../coverage.html"
golangci-lint -v run ./...
else
# run this script from within docker