Switches to Java 11 for compilation and removes some duplicated pipeline steps
All checks were successful
EpicKnarvik97/Rogue101/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Rogue101/pipeline/head This commit looks good
This commit is contained in:
parent
9c565e197c
commit
f125f738d2
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user