Rogue101/Jenkinsfile
EpicKnarvik97 f125f738d2
All checks were successful
EpicKnarvik97/Rogue101/pipeline/head This commit looks good
Switches to Java 11 for compilation and removes some duplicated pipeline steps
2021-10-12 19:41:21 +02:00

27 lines
627 B
Groovy

pipeline {
agent any
tools {
jdk 'JDK11'
}
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'mvn clean & mvn validate & mvn compile'
}
}
stage('Test') {
steps {
echo 'Testing...'
sh 'mvn test'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'mvn package & mvn verify & mvn install'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}