Changes to support new jenkins
This commit is contained in:
parent
56b1619ca6
commit
de9daec7a8
1 changed files with 14 additions and 1 deletions
13
build.gradle
13
build.gradle
|
@ -175,7 +175,20 @@ build.dependsOn deobfJar, apiJar
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
repositories {
|
repositories {
|
||||||
mavenDeployer {
|
mavenDeployer {
|
||||||
|
//This is used when the build is done on a slave node
|
||||||
|
if (project.hasProperty('mavenPass'))
|
||||||
|
{
|
||||||
|
println 'Uploading to remote Maven Repo'
|
||||||
|
repository(url: "http://mavenupload.modmuss50.me/") {
|
||||||
|
authentication(userName: "buildslave", password: project.getProperty('mavenPass'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//this is when the build is executed on the master node
|
||||||
|
println 'Uploading to local Maven Repo'
|
||||||
repository(url: "file:///var/www/maven/")
|
repository(url: "file:///var/www/maven/")
|
||||||
|
}
|
||||||
pom {
|
pom {
|
||||||
groupId = "TechReborn"
|
groupId = "TechReborn"
|
||||||
version = project.version
|
version = project.version
|
||||||
|
|
Loading…
Add table
Reference in a new issue