Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Moving to new Jenkins setup
Dieser Commit ist enthalten in:
Ursprung
4a872ffabe
Commit
898353640e
@ -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
|
||||||
|
11
build.gradle
11
build.gradle
@ -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 {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren