Hopefully this will work now?
This commit is contained in:
@@ -9,10 +9,69 @@
|
||||
-def supportedMc = "1.21";
|
||||
-def reltype = "port";
|
||||
+def JDK = "17";
|
||||
+def majorMc = "1.20/1";
|
||||
+def majorMc = "1.20";
|
||||
+def modLoaders = "forge|fabric|quilt";
|
||||
+def supportedMc = "1.20|1.20.1";
|
||||
+def reltype = "snapshot";
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -32,15 +32,19 @@
|
||||
|
||||
stage("Prepare") {
|
||||
steps {
|
||||
- sh "chmod +x ./gradlew"
|
||||
- sh "./gradlew build -PreleaseType=${reltype}"
|
||||
+ dir("${WORKSPACE}/${majorMc}") {
|
||||
+ sh "chmod +x ./gradlew"
|
||||
+ sh "./gradlew build -PreleaseType=${reltype}"
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
stage("Publish to Maven") {
|
||||
steps {
|
||||
- catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
- sh "./gradlew publish -PreleaseType=${reltype}"
|
||||
+ dir ("${WORKSPACE}/${majorMc}") {
|
||||
+ catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
+ sh "./gradlew publish -PreleaseType=${reltype}"
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,19 +52,21 @@
|
||||
|
||||
post {
|
||||
always {
|
||||
- sh "./gradlew --stop"
|
||||
- archiveArtifacts artifacts: 'artifacts/*.jar'
|
||||
-
|
||||
- fddsnapshotter apiKey: env.PLATFORM_KEY,
|
||||
- projectSlug: "craterlib",
|
||||
- projectName: "${projectName}",
|
||||
- projectIcon: "${projectIcon}",
|
||||
- modLoaders: "${modLoaders}",
|
||||
- minecraftVersions: "${supportedMc}",
|
||||
- failWebhook: env.SSS_WEBHOOK,
|
||||
- publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
|
||||
-
|
||||
- deleteDir()
|
||||
+ dir("${WORKSPACE}/${majorMc}") {
|
||||
+ sh "./gradlew --stop"
|
||||
+ archiveArtifacts artifacts: 'artifacts/*.jar'
|
||||
+
|
||||
+ fddsnapshotter apiKey: env.PLATFORM_KEY,
|
||||
+ projectSlug: "craterlib",
|
||||
+ projectName: "${projectName}",
|
||||
+ projectIcon: "${projectIcon}",
|
||||
+ modLoaders: "${modLoaders}",
|
||||
+ minecraftVersions: "${supportedMc}",
|
||||
+ failWebhook: env.SSS_WEBHOOK,
|
||||
+ publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
|
||||
+
|
||||
+ deleteDir()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user