Skip to content
Snippets Groups Projects
Commit 62b138f2 authored by erbel's avatar erbel
Browse files

Adjust uploadArchives Task

parent b0bb818e
Branches
Tags 1.0-SNAPSHOT
No related merge requests found
Pipeline #119958 passed
...@@ -212,7 +212,11 @@ uploadArchives { ...@@ -212,7 +212,11 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
} }
pom.version = System.getenv('VERSION') if (System.getenv('VERSION') != null) {
pom.version = System.getenv('VERSION')
println "Version is set to: " + System.getenv('VERSION')
}
pom.version = "SNAPSHOT"
pom.artifactId = "mocci" pom.artifactId = "mocci"
pom.groupId = "de.ugoe.cs.rwm" pom.groupId = "de.ugoe.cs.rwm"
} }
......
...@@ -44,10 +44,11 @@ uploadArchives { ...@@ -44,10 +44,11 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
} }
if (System.getenv('VERSION') != null) { if (System.getenv('VERSION') != null) {
pom.version = System.getenv('VERSION') pom.version = System.getenv('VERSION')
println "Version is set to: " + System.getenv('VERSION') println "Version is set to: " + System.getenv('VERSION')
} }
pom.version = "SNAPSHOT"
pom.artifactId = "connector" pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci" pom.groupId = "de.ugoe.cs.rwm.mocci"
} }
......
...@@ -39,10 +39,11 @@ uploadArchives { ...@@ -39,10 +39,11 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
} }
if (System.getenv('VERSION') != null) { if (System.getenv('VERSION') != null) {
pom.version = System.getenv('VERSION') pom.version = System.getenv('VERSION')
println "Version is set to: " + System.getenv('VERSION') println "Version is set to: " + System.getenv('VERSION')
} }
pom.version = "SNAPSHOT"
pom.artifactId = "connector" pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci" pom.groupId = "de.ugoe.cs.rwm.mocci"
} }
......
...@@ -43,10 +43,11 @@ uploadArchives { ...@@ -43,10 +43,11 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
} }
if (System.getenv('VERSION') != null) { if (System.getenv('VERSION') != null) {
pom.version = System.getenv('VERSION') pom.version = System.getenv('VERSION')
println "Version is set to: " + System.getenv('VERSION') println "Version is set to: " + System.getenv('VERSION')
} }
pom.version = "SNAPSHOT"
pom.artifactId = "edit" pom.artifactId = "edit"
pom.groupId = "de.ugoe.cs.rwm.mocci.model" pom.groupId = "de.ugoe.cs.rwm.mocci.model"
} }
......
...@@ -73,10 +73,11 @@ uploadArchives { ...@@ -73,10 +73,11 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") { repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD')) authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
} }
if (System.getenv('VERSION') != null) { if (System.getenv('VERSION') != null) {
pom.version = System.getenv('VERSION') pom.version = System.getenv('VERSION')
println "Version is set to: " + System.getenv('VERSION') println "Version is set to: " + System.getenv('VERSION')
} }
pom.version = "SNAPSHOT"
pom.artifactId = "model" pom.artifactId = "model"
pom.groupId = "de.ugoe.cs.rwm.mocci" pom.groupId = "de.ugoe.cs.rwm.mocci"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment