Changes to support new jenkins

This commit is contained in:
modmuss50 2016-02-23 21:59:06 +00:00
parent 56b1619ca6
commit de9daec7a8

View file

@ -175,7 +175,20 @@ build.dependsOn deobfJar, apiJar
uploadArchives {
repositories {
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/")
}
pom {
groupId = "TechReborn"
version = project.version