NaturesAura/Jenkinsfile

36 lines
522 B
Text
Raw Normal View History

2020-02-16 13:27:18 +01:00
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh './gradlew clean --no-daemon'
}
}
2020-02-16 13:27:18 +01:00
stage('Build') {
steps {
sh './gradlew build --no-daemon'
}
}
2020-02-16 13:27:18 +01:00
stage('Upload Artifacts') {
steps {
archiveArtifacts 'build/libs/**.jar'
2020-02-16 13:27:18 +01:00
}
}
2020-02-16 13:53:21 +01:00
stage('Publish') {
when {
2020-11-07 00:43:27 +01:00
branch 'main'
}
2020-02-16 13:53:21 +01:00
steps {
sh './gradlew publish --no-daemon'
}
}
2020-02-16 13:27:18 +01:00
}
2020-02-16 14:45:19 +01:00
environment {
local_maven = '/var/www/maven'
}
}