Moving to new Jenkins setup

This commit is contained in:
Andrew Steinborn 2018-12-24 08:23:56 -05:00
parent 4a872ffabe
commit 898353640e
2 changed files with 1 additions and 12 deletions

View File

@ -80,7 +80,7 @@ publishing {
repositories {
maven {
name = 'myRepo'
def base = project.ext.getCurrentBranchName() == "master" ? 'file:///maven-repo' : File.createTempDir().toURI().toURL().toString()
def base = 'file:///maven-repo'
def releasesRepoUrl = "$base/releases"
def snapshotsRepoUrl = "$base/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl

View File

@ -18,17 +18,6 @@ allprojects {
guavaVersion = '25.1-jre'
checkerFrameworkVersion = '2.5.6'
getCurrentBranchName = {
new ByteArrayOutputStream().withStream { os ->
exec {
executable = "git"
args = ["rev-parse", "--abbrev-ref", "HEAD"]
standardOutput = os
}
return os.toString().trim()
}
}
getCurrentShortRevision = {
new ByteArrayOutputStream().withStream { os ->
exec {