Skip to content
Snippets Groups Projects
Commit 548c827a authored by René Schöne's avatar René Schöne
Browse files

Append CI pipeline IID per default

parent 23407922
Branches
No related tags found
No related merge requests found
Pipeline #13173 passed
......@@ -409,12 +409,11 @@ if (project.hasProperty('ossrhUsername')) {
}
}
version = fullVersion + "-dresden"
//187
version = fullVersion + "-dresden" + "-$System.env.CI_PIPELINE_IID"
publishing {
publications {
maven(MavenPublication) {
// artifactId = 'ragconnect'
artifact("jastadd2.jar") {
extension 'jar'
}
......@@ -422,12 +421,7 @@ publishing {
}
repositories {
maven {
url "https://git-st.inf.tu-dresden.de/api/v4/projects/187/packages/maven"
// Uncomment the following lines to publish manually (and comment out the other credentials section)
// credentials(HttpHeaderCredentials) {
// name = "Private-Token"
// value = gitLabPrivateToken // the variable resides in ~/.gradle/gradle.properties
// }
url "https://git-st.inf.tu-dresden.de/api/v4/projects/$System.env.CI_PROJECT_ID/packages/maven"
credentials(HttpHeaderCredentials) {
name = 'Job-Token'
value = System.getenv("CI_JOB_TOKEN")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment