Adds Jenkinsfile
All checks were successful
KnarCraft/Jar-Updater/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2020-08-22 14:58:56 +02:00
parent 6cea81136a
commit f304a7a546

24
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,24 @@
pipeline {
agent any
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
}
}
}
}