Skip to content
Snippets Groups Projects
Commit 09143d65 authored by erbel's avatar erbel
Browse files

Adjust build ci to automatically use tag version for jar deployment

parent cc4fb7b4
No related branches found
Tags 1.0.0
No related merge requests found
Pipeline #119713 passed
......@@ -15,6 +15,7 @@ before_script:
build:
stage: build
script:
- export VERSION=SNAPSHOT
- gradle assemble
- gradle updateSiteZip
artifacts:
......@@ -27,6 +28,7 @@ build:
test:
stage: test
script:
- export VERSION=SNAPSHOT
- mv src/test/resources/martserver-plugins ~/martserver-plugins/
- gradle check
- gradle jacocoRootReport
......@@ -39,6 +41,7 @@ test:
pages:
stage: pages
script:
- export VERSION=SNAPSHOT
- mkdir public
- mv config/html/* public
- mv de.ugoe.cs.rwm.mocci.model/build/libs/*.jar public
......@@ -53,6 +56,8 @@ pages:
upload:
stage: deploy
script:
- export VERSION=${CI_COMMIT_TAG}
- echo $VERSION
- gradle upload
only:
- tags
......
......@@ -212,7 +212,7 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
}
pom.version = "1.0.0"
pom.version = System.getenv('VERSION')
pom.artifactId = "mocci"
pom.groupId = "de.ugoe.cs.rwm"
}
......
......@@ -44,7 +44,7 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
}
pom.version = "1.0.0"
pom.version = System.getenv('VERSION')
pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci"
}
......
......@@ -39,7 +39,7 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
}
pom.version = "1.0.0"
pom.version = System.getenv('VERSION')
pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci"
}
......
......@@ -43,7 +43,7 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
}
pom.version = "1.0.0"
pom.version = System.getenv('VERSION')
pom.artifactId = "edit"
pom.groupId = "de.ugoe.cs.rwm.mocci.model"
}
......
......@@ -73,7 +73,7 @@ uploadArchives {
repository(url: "https://nexus.informatik.uni-goettingen.de/content/repositories/rwm/") {
authentication(userName: System.getenv('NEXUSUSER'), password: System.getenv('NEXUSPASSWORD'))
}
pom.version = "1.0.0"
pom.version = System.getenv('VERSION')
pom.artifactId = "model"
pom.groupId = "de.ugoe.cs.rwm.mocci"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment