Rogue101/Jenkinsfile
EpicKnarvik97 9c565e197c
Some checks reported errors
EpicKnarvik97/Rogue101/pipeline/head Something is wrong with the build of this commit
Forces use of JDK8 for compilation
2021-10-12 19:27:46 +02:00

27 lines
664 B
Groovy

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