You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
844 B
25 lines
844 B
node {
|
|
def mvnHome
|
|
stage('Preparation') { // for display purposes
|
|
// Get some code from a GitHub repository
|
|
// git 'https://gogs.informatik.hs-fulda.de/Continous_Integration_in_der_Praxis/colaboration-training.git'
|
|
// Get the Maven tool.
|
|
// ** NOTE: This 'M3' Maven tool must be configured
|
|
// ** in the global configuration.
|
|
mvnHome = tool 'M3'
|
|
}
|
|
stage('Build') {
|
|
// Run the maven build
|
|
withEnv(["MVN_HOME=$mvnHome"]) {
|
|
if (isUnix()) {
|
|
sh '"$MVN_HOME/bin/mvn" -Dmaven.test.failure.ignore clean package'
|
|
} else {
|
|
bat(/"%MVN_HOME%\bin\mvn" -Dmaven.test.failure.ignore clean package/)
|
|
}
|
|
}
|
|
}
|
|
stage('Results') {
|
|
// junit '**/target/surefire-reports/TEST-*.xml'
|
|
archiveArtifacts 'target/*.jar'
|
|
}
|
|
}
|