Stargate/Jenkinsfile
EpicKnarvik97 40f0a99e5a
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit
Forces Jenkins to use a compatible JDK
2021-10-30 15:17:15 +02:00

27 lines
622 B
Groovy

pipeline {
agent any
tools {
jdk 'JDK17'
}
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 verify -Dmaven.test.skip=true'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}