Fucking orion

This commit is contained in:
2024-05-09 19:41:18 +02:00
parent 261ea4c3f8
commit f712036d2e
2 changed files with 5 additions and 4 deletions

View File

@@ -29,14 +29,14 @@ pipeline {
stage("Build") { stage("Build") {
steps { steps {
sh "./gradlew build" sh "./gradlew build -PreleaseType=port"
} }
} }
stage("Publish to Maven") { stage("Publish to Maven") {
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "./gradlew publish" sh "./gradlew publish -PreleaseType=port"
} }
} }
} }

View File

@@ -3,7 +3,7 @@ plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id "xyz.wagyourtail.unimined" version "1.2.4" apply false id "xyz.wagyourtail.unimined" version "1.2.4" apply false
id "com.hypherionmc.modutils.modpublisher" version "2.1.+" id "com.hypherionmc.modutils.modpublisher" version "2.1.+"
id "com.hypherionmc.modutils.orion" version "1.0.13" id "com.hypherionmc.modutils.orion" version "1.0.14"
id 'maven-publish' id 'maven-publish'
} }
@@ -15,7 +15,8 @@ orion.setup {
dopplerToken = System.getenv("DOPPLER_KEY") dopplerToken = System.getenv("DOPPLER_KEY")
versioning { versioning {
identifier("${release_type}") var relType = project.properties["releaseType"] ?: "${release_type}"
identifier("${relType}")
} }
} }