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
No related tags found
No related merge requests found
Pipeline #119713 passed
...@@ -15,6 +15,7 @@ before_script: ...@@ -15,6 +15,7 @@ before_script:
build: build:
stage: build stage: build
script: script:
- export VERSION=SNAPSHOT
- gradle assemble - gradle assemble
- gradle updateSiteZip - gradle updateSiteZip
artifacts: artifacts:
...@@ -27,6 +28,7 @@ build: ...@@ -27,6 +28,7 @@ build:
test: test:
stage: test stage: test
script: script:
- export VERSION=SNAPSHOT
- mv src/test/resources/martserver-plugins ~/martserver-plugins/ - mv src/test/resources/martserver-plugins ~/martserver-plugins/
- gradle check - gradle check
- gradle jacocoRootReport - gradle jacocoRootReport
...@@ -39,6 +41,7 @@ test: ...@@ -39,6 +41,7 @@ test:
pages: pages:
stage: pages stage: pages
script: script:
- export VERSION=SNAPSHOT
- mkdir public - mkdir public
- mv config/html/* public - mv config/html/* public
- mv de.ugoe.cs.rwm.mocci.model/build/libs/*.jar public - mv de.ugoe.cs.rwm.mocci.model/build/libs/*.jar public
...@@ -53,6 +56,8 @@ pages: ...@@ -53,6 +56,8 @@ pages:
upload: upload:
stage: deploy stage: deploy
script: script:
- export VERSION=${CI_COMMIT_TAG}
- echo $VERSION
- gradle upload - gradle upload
only: only:
- tags - tags
......
...@@ -212,7 +212,7 @@ uploadArchives { ...@@ -212,7 +212,7 @@ 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 = "1.0.0" pom.version = System.getenv('VERSION')
pom.artifactId = "mocci" pom.artifactId = "mocci"
pom.groupId = "de.ugoe.cs.rwm" pom.groupId = "de.ugoe.cs.rwm"
} }
......
...@@ -44,7 +44,7 @@ uploadArchives { ...@@ -44,7 +44,7 @@ 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 = "1.0.0" pom.version = System.getenv('VERSION')
pom.artifactId = "connector" pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci" pom.groupId = "de.ugoe.cs.rwm.mocci"
} }
......
...@@ -39,7 +39,7 @@ uploadArchives { ...@@ -39,7 +39,7 @@ 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 = "1.0.0" pom.version = System.getenv('VERSION')
pom.artifactId = "connector" pom.artifactId = "connector"
pom.groupId = "de.ugoe.cs.rwm.mocci" pom.groupId = "de.ugoe.cs.rwm.mocci"
} }
......
...@@ -43,7 +43,7 @@ uploadArchives { ...@@ -43,7 +43,7 @@ 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 = "1.0.0" pom.version = System.getenv('VERSION')
pom.artifactId = "edit" pom.artifactId = "edit"
pom.groupId = "de.ugoe.cs.rwm.mocci.model" pom.groupId = "de.ugoe.cs.rwm.mocci.model"
} }
......
...@@ -73,7 +73,7 @@ uploadArchives { ...@@ -73,7 +73,7 @@ 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 = "1.0.0" pom.version = System.getenv('VERSION')
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.
Finish editing this message first!
Please register or to comment