mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
set up maven for 1.12 branch
This commit is contained in:
parent
0050d8446e
commit
bc8edd6cb7
2 changed files with 36 additions and 1 deletions
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
|
@ -109,7 +109,7 @@ publishing {
|
|||
}
|
||||
repositories {
|
||||
maven {
|
||||
url "file:///srv/nginx/maven"
|
||||
url "file://" + System.getenv("local_maven")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue