13
0
geforkt von Mirrors/Velocity

Moving to new Jenkins setup

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-12-24 08:23:56 -05:00
Ursprung 4a872ffabe
Commit 898353640e
2 geänderte Dateien mit 1 neuen und 12 gelöschten Zeilen

Datei anzeigen

@ -80,7 +80,7 @@ publishing {
repositories { repositories {
maven { maven {
name = 'myRepo' 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 releasesRepoUrl = "$base/releases"
def snapshotsRepoUrl = "$base/snapshots" def snapshotsRepoUrl = "$base/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl

Datei anzeigen

@ -18,17 +18,6 @@ allprojects {
guavaVersion = '25.1-jre' guavaVersion = '25.1-jre'
checkerFrameworkVersion = '2.5.6' 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 = { getCurrentShortRevision = {
new ByteArrayOutputStream().withStream { os -> new ByteArrayOutputStream().withStream { os ->
exec { exec {