mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 09:23:12 +01:00
cb58b9757e
only publish on master
35 lines
525 B
Groovy
35 lines
525 B
Groovy
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 {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh './gradlew publish --no-daemon'
|
|
}
|
|
}
|
|
|
|
}
|
|
environment {
|
|
local_maven = '/var/www/maven'
|
|
}
|
|
}
|