PrettyPipes/Jenkinsfile

36 lines
552 B
Text
Raw Normal View History

2020-04-13 21:48:35 +02:00
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh 'chmod +x ./gradlew'
sh './gradlew clean --no-daemon'
}
}
stage('Build') {
steps {
sh './gradlew build --no-daemon'
}
}
stage('Upload Artifacts') {
steps {
archiveArtifacts 'build/libs/**.jar'
}
}
2020-05-07 12:39:27 +02:00
stage('Publish') {
when {
2020-11-07 00:49:54 +01:00
branch 'main'
2020-05-07 12:39:27 +02:00
}
steps {
sh './gradlew publish --no-daemon'
}
}
}
environment {
local_maven = '/var/www/maven'
2020-04-13 21:48:35 +02:00
}
}