ActuallyAdditions/Jenkinsfile

35 lines
521 B
Text
Raw Permalink Normal View History

2020-09-06 21:46:49 +02:00
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh './gradlew clean --no-daemon'
}
}
stage('Build') {
steps {
sh './gradlew build --no-daemon'
}
}
stage('Upload Artifacts') {
steps {
archiveArtifacts 'build/libs/**.jar'
}
}
stage('Publish') {
when {
2020-11-07 14:35:29 +01:00
branch 'main'
2020-09-06 21:46:49 +02:00
}
steps {
sh './gradlew publish --no-daemon'
}
}
}
environment {
local_maven = '/var/www/maven'
}
}