Switches to Java 11 for compilation and removes some duplicated pipeline steps
All checks were successful
EpicKnarvik97/Rogue101/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2021-10-12 19:41:21 +02:00
parent 9c565e197c
commit f125f738d2

6
Jenkinsfile vendored
View File

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