BlacksmithVisuals/Jenkinsfile
EpicKnarvik97 f574d98ba5
All checks were successful
KnarCraft/BlacksmithVisuals/pipeline/head This commit looks good
Changes deployment step
2024-07-29 12:39:49 +02:00

33 lines
761 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('Verify') {
steps {
echo 'Verifying...'
sh 'mvn verify -Dmaven.test.skip=true'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
sh 'mvn install'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}