blob: 2811b561d164980d77e61da24d6756471f8802ef [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2023 Martin Erich Jobst
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Martin Erich Jobst - initial implementation
*******************************************************************************/
pipeline {
options {
timeout(time: 60, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds()
}
agent {
label "centos-8"
}
tools {
maven 'apache-maven-latest'
jdk 'openjdk-jdk17-latest'
}
stages {
stage('Build') {
steps {
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
sh '''
export GDK_BACKEND=x11
export MAVEN_OPTS="-Xms512m -Xmx2048m -Dmaven.repo.local=$HOME/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true"
mvn clean verify -B -T 1C -ntp
'''
}
}
post {
always {
junit '**/target/surefire-reports/*.xml, **/target/failsafe-reports/*.xml'
}
}
}
}
}