set up maven for 1.12 branch

This commit is contained in:
Ell 2020-10-07 21:25:00 +02:00
parent 0050d8446e
commit bc8edd6cb7
2 changed files with 36 additions and 1 deletions

35
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,35 @@
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'
}
}

View file

@ -109,7 +109,7 @@ publishing {
}
repositories {
maven {
url "file:///srv/nginx/maven"
url "file://" + System.getenv("local_maven")
}
}
}