Rogue101/Jenkinsfile

27 lines
627 B
Plaintext
Raw Permalink Normal View History

2020-02-14 01:07:29 +01:00
pipeline {
agent any
2021-10-12 19:27:46 +02:00
tools {
jdk 'JDK11'
2021-10-12 19:27:46 +02:00
}
2020-02-14 01:07:29 +01:00
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'mvn clean & mvn validate & mvn compile'
}
}
stage('Test') {
steps {
echo 'Testing...'
sh 'mvn test'
2020-02-14 01:07:29 +01:00
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'mvn package & mvn verify & mvn install'
2020-02-14 01:07:29 +01:00
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}