PrettyPipes/Jenkinsfile

36 lines
554 B
Text
Raw Permalink 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 {
branch 'master'
}
steps {
sh './gradlew publish --no-daemon'
}
}
}
environment {
local_maven = '/var/www/maven'
2020-04-13 21:48:35 +02:00
}
}