From 68e9725d024ccef7b618f462dee5648ca288bdc0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 15 Jan 2021 15:57:27 +0100 Subject: add 'docker' tag into GitLab CI runner to select a shared docker based runner --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 364d19fb..523230e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,8 @@ cache: assemble: stage: assemble + tags: + - docker except: - tags script: | @@ -47,6 +49,8 @@ assemble: buildDistributionPackage: stage: package + tags: + - docker except: - tags - /^feature/.*$/i @@ -66,6 +70,8 @@ buildDistributionPackage: release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest + tags: + - docker needs: - job: buildDistributionPackage artifacts: true -- cgit v1.2.3 From 1c6eba08f2a1c8008b85a71bc2c5d0a9d5e50361 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Tue, 15 Jun 2021 12:30:30 +0200 Subject: fix some warning in maven build process and switch to another GitLab CI maven image --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 523230e3..9cecaf7f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ -image: maven:latest +#image: maven:latest +image: maven:3.6.3-jdk-11 variables: LC_ALL: "en_US.UTF-8" -- cgit v1.2.3 From 17e4921691dd51705e110d0ec5a8635699c510b8 Mon Sep 17 00:00:00 2001 From: Christian Kollmann Date: Tue, 30 Nov 2021 15:49:49 +0100 Subject: CI: Refactor script --- .gitlab-ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9cecaf7f..df21e049 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,10 @@ include: - template: Dependency-Scanning.gitlab-ci.yml - template: Secret-Detection.gitlab-ci.yml +default: + tags: + - docker + stages: - assemble - test @@ -30,14 +34,12 @@ cache: assemble: stage: assemble - tags: - - docker except: - tags script: | mvn $MAVEN_CLI_OPTS generate-sources compile test after_script: - - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' $JACOCO_CSV_LOCATION + - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' $JACOCO_CSV_LOCATION coverage: '/([0-9]{1,3}.[0-9]*).%.covered/' artifacts: when: always @@ -50,8 +52,6 @@ assemble: buildDistributionPackage: stage: package - tags: - - docker except: - tags - /^feature/.*$/i @@ -64,15 +64,13 @@ buildDistributionPackage: name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}" when: always reports: - dotenv: variables.env + dotenv: variables.env paths: - $PROJECT_RELEASE_PACKAGE release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest - tags: - - docker needs: - job: buildDistributionPackage artifacts: true @@ -87,4 +85,4 @@ release: name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}-release" expire_in: never paths: - - $PROJECT_RELEASE_PACKAGE + - $PROJECT_RELEASE_PACKAGE -- cgit v1.2.3 From c3ab31034e1b224f348648a53e5650a90a0e630e Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 12 May 2022 15:26:50 +0200 Subject: build(ci): write maven log into file to support log files > 500kB --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f408b1df..9dd8d862 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,7 @@ include: default: tags: - - docker + - docker stages: - assemble @@ -37,7 +37,8 @@ assemble: except: - tags script: | - mvn $MAVEN_CLI_OPTS generate-sources compile test + mkdir ./target + mvn $MAVEN_CLI_OPTS --log-file ./target/mvn_build.log generate-sources compile test after_script: - awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' $JACOCO_CSV_LOCATION coverage: '/([0-9]{1,3}.[0-9]*).%.covered/' @@ -48,6 +49,7 @@ assemble: paths: - $JACOCO_CSV_LOCATION - $JACOCO_XML_LOCATION + - "**/target/mvn_build.log" buildDistributionPackage: -- cgit v1.2.3