From 52ef0b080071a49aca955a9ce7312c1453a7a6b6 Mon Sep 17 00:00:00 2001 From: Maxim Nesen Date: Fri, 2 Jul 2021 09:46:24 +0200 Subject: [PATCH] CI env for Jenkins Signed-off-by: Maxim Nesen --- etc/jenkins/Jenkinsfile_ci_build | 12 +++++++++--- etc/jenkins/jenkins_build.sh | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/etc/jenkins/Jenkinsfile_ci_build b/etc/jenkins/Jenkinsfile_ci_build index 32bf602497..7c3f9ff093 100644 --- a/etc/jenkins/Jenkinsfile_ci_build +++ b/etc/jenkins/Jenkinsfile_ci_build @@ -5,7 +5,9 @@ pipeline { stage('Jersey build') { parallel { stage('JDK 8 ') { - agent any + agent { + label 'centos-7' + } tools { jdk 'oracle-jdk8-latest' maven 'apache-maven-latest' @@ -17,7 +19,9 @@ pipeline { } } stage('JDK 11 ') { - agent any + agent { + label 'centos-7' + } tools { jdk 'openjdk-jdk11-latest' maven 'apache-maven-latest' @@ -29,7 +33,9 @@ pipeline { } } stage('JDK 16 ') { - agent any + agent { + label 'centos-7' + } tools { jdk 'openjdk-jdk16-latest' maven 'apache-maven-latest' diff --git a/etc/jenkins/jenkins_build.sh b/etc/jenkins/jenkins_build.sh index 1a6e6a6aab..afa8b1584e 100644 --- a/etc/jenkins/jenkins_build.sh +++ b/etc/jenkins/jenkins_build.sh @@ -1,3 +1,5 @@ #!/bin/bash -xe -mvn -V -U -B clean install glassfish-copyright:check -Dcopyright.quiet=false -Dsurefire.systemPropertiesFile=${WORKSPACE}/etc/jenkins/systemPropertiesFile \ No newline at end of file +export DEBUG=true + +mvn -V -U -B -e clean install glassfish-copyright:check -Dcopyright.quiet=false -Dsurefire.systemPropertiesFile=${WORKSPACE}/etc/jenkins/systemPropertiesFile \ No newline at end of file