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 { pipeline {
agent any agent any
tools { tools {
jdk 'JDK8' jdk 'JDK11'
} }
stages { stages {
stage('Build') { stage('Build') {
@ -13,13 +13,13 @@ pipeline {
stage('Test') { stage('Test') {
steps { steps {
echo 'Testing...' echo 'Testing...'
sh 'mvn clean & mvn test' sh 'mvn test'
} }
} }
stage('Deploy') { stage('Deploy') {
steps { steps {
echo 'Deploying...' 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 archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
} }
} }