Stargate/Jenkinsfile

33 lines
809 B
Plaintext
Raw Normal View History

pipeline {
agent any
2021-10-30 15:17:15 +02:00
tools {
2022-11-22 16:41:55 +01:00
jdk 'JDK17'
2021-10-30 15:17:15 +02:00
}
stages {
stage('Build') {
steps {
echo 'Building...'
sh 'mvn clean & mvn validate & mvn compile'
}
}
stage('Test') {
steps {
echo 'Testing...'
sh 'mvn test'
}
}
2022-11-26 15:15:45 +01:00
stage('Verify') {
steps {
echo 'Verifying...'
sh 'mvn verify -Dmaven.test.skip=true'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
2022-11-26 15:15:45 +01:00
sh 'mvn deploy -Dmaven.install.skip=true -Dmaven.test.skip=true'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}