Skip to content

Commit d44143b

Browse files
committed
Reduce ci artifacts
1 parent 2255699 commit d44143b

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ pipeline {
111111
// Dumps to analyze later
112112
sh 'mkdir -p debug'
113113
sh 'docker-compose logs fullstack | gzip > debug/docker_fullstack.log.gz'
114-
// Cypress videos and screenshot artifacts
115-
dir(path: 'test/results') {
116-
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml'
117-
}
118114
junit 'test/results/junit/*'
119115
}
120116
}
@@ -139,8 +135,6 @@ pipeline {
139135
dir(path: 'docs/.vuepress/dist') {
140136
sh 'tar -czf ../../docs.tgz *'
141137
}
142-
143-
archiveArtifacts(artifacts: 'docs/docs.tgz', allowEmptyArchive: false)
144138
}
145139
}
146140
stage('MultiArch Build') {
@@ -221,11 +215,17 @@ pipeline {
221215
sh 'figlet "SUCCESS"'
222216
}
223217
failure {
218+
dir(path: 'test') {
219+
archiveArtifacts allowEmptyArchive: true, artifacts: 'results/**/*', excludes: '**/*.xml'
220+
}
224221
archiveArtifacts(artifacts: 'debug/**.*', allowEmptyArchive: true)
225222
juxtapose event: 'failure'
226223
sh 'figlet "FAILURE"'
227224
}
228225
unstable {
226+
dir(path: 'test') {
227+
archiveArtifacts allowEmptyArchive: true, artifacts: 'results/**/*', excludes: '**/*.xml'
228+
}
229229
archiveArtifacts(artifacts: 'debug/**.*', allowEmptyArchive: true)
230230
juxtapose event: 'unstable'
231231
sh 'figlet "UNSTABLE"'

scripts/ci/build-backend

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ if [ "$BUILD_VERSION" = "" ]; then
2020
fi
2121

2222
echo -e "${BLUE}${GREEN}build-backend:${RESET}"
23-
echo " BUILD_COMMIT: ${BUILD_COMMIT:-notset}"
23+
echo " BUILD_COMMIT: $BUILD_COMMIT"
2424
echo " BUILD_DATE: $BUILD_DATE"
2525
echo " BUILD_VERSION: $BUILD_VERSION"
26-
echo " CGO_ENABLED: ${CGO_ENABLED:-not set}"
26+
echo " CGO_ENABLED: ${CGO_ENABLED:-}"
2727
echo " GO111MODULE: ${GO111MODULE:-}"
2828
echo " GOPRIVATE: ${GOPRIVATE:-}"
2929
echo " GOPROXY: ${GOPROXY:-}"
@@ -36,21 +36,19 @@ cleanup() {
3636
build_backend() {
3737
echo -e "${BLUE}${CYAN}Building backend for ${YELLOW}${1}-${2} ...${RESET}"
3838

39-
FILENAME="nginxproxymanager-v${BUILD_VERSION}_${1}_${2}"
39+
FILENAME="nginxproxymanager-${1}_${2}"
4040
if [ "$1" = "windows" ]; then
4141
FILENAME="${FILENAME}.exe"
4242
fi
4343

4444
docker run --rm \
4545
-e BUILD_COMMIT="${BUILD_COMMIT:-notset}" \
4646
-e BUILD_DATE="$BUILD_DATE" \
47-
-e BUILD_VERSION="$BUILD_VERSION" \
4847
-e GOARCH="${2}" \
4948
-e GOOS="${1}" \
5049
-e GOPRIVATE="${GOPRIVATE:-}" \
5150
-e GOPROXY="${GOPROXY:-}" \
5251
-e NOW="$NOW" \
53-
-e SENTRY_DSN="${SENTRY_DSN:-}" \
5452
-e TZ="${TZ:-Australia/Brisbane}" \
5553
-v "$(pwd):/app" \
5654
-w '/app/backend' \

0 commit comments

Comments
 (0)