Files
CraterLib/patches/1.18.2/.jenkins/Jenkinsfile.deploy.patch

51 lines
1.4 KiB
Diff
Raw Normal View History

2024-05-19 19:08:42 +02:00
--- a/.jenkins/Jenkinsfile.deploy
+++ b/.jenkins/Jenkinsfile.deploy
@@ -1,5 +1,5 @@
-def JDK = "21"
-def majorMc = "1.21";
+def majorMc = "1.18.2";
+def JDK = "17"
2024-05-19 19:08:42 +02:00
pipeline {
agent {
2024-06-11 23:04:13 +02:00
@@ -26,25 +26,33 @@
}
stage("Prepare") {
steps {
- sh "chmod +x ./gradlew"
- sh "./gradlew clean"
+ dir("${WORKSPACE}/${majorMc}") {
+ sh "chmod +x ./gradlew"
+ sh "./gradlew clean"
+ }
}
}
stage("Publish to Modrinth/Curseforge") {
steps {
- sh "./gradlew publishMod -Prelease=true"
+ dir("${WORKSPACE}/${majorMc}") {
+ sh "./gradlew publishMod -Prelease=true"
+ }
}
}
stage("Publish to Maven") {
steps {
- sh "./gradlew publish -Prelease=true"
+ dir("${WORKSPACE}/${majorMc}") {
+ sh "./gradlew publish -Prelease=true"
+ }
}
}
}
post {
always {
- sh "./gradlew --stop"
- deleteDir()
+ dir("${WORKSPACE}/${majorMc}") {
+ sh "./gradlew --stop"
+ deleteDir()
+ }
discordSend webhookURL: env.FDD_WH_ADMIN,
title: "CraterLib Port Deploy #${BUILD_NUMBER}",