Fix the damn buildscripts I keep on missing
This commit is contained in:
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
stage("Prepare") {
|
||||
steps {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "chmod +x ./gradlew"
|
||||
sh "./gradlew clean"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Publish to Modrinth/Curseforge") {
|
||||
steps {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "./gradlew publishMod -Prelease=true"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Publish to Maven") {
|
||||
steps {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "./gradlew publish -Prelease=true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "./gradlew --stop"
|
||||
deleteDir()
|
||||
}
|
||||
|
||||
discordSend webhookURL: env.FDD_WH_ADMIN,
|
||||
title: "CraterLib Port Deploy #${BUILD_NUMBER}",
|
||||
|
@@ -4,7 +4,7 @@ def JDK = "21";
|
||||
def majorMc = "1.21.6";
|
||||
def modLoaders = "neoforge|fabric|quilt|paper";
|
||||
def supportedMc = "1.21.6";
|
||||
def reltype = "experimental";
|
||||
def reltype = "snapshot";
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -38,22 +38,27 @@ pipeline {
|
||||
|
||||
stage("Prepare") {
|
||||
steps {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "chmod +x ./gradlew"
|
||||
sh "./gradlew build -PreleaseType=${reltype}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("Publish to Maven") {
|
||||
steps {
|
||||
dir ("${WORKSPACE}/${majorMc}") {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh "./gradlew publish -PreleaseType=${reltype}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
dir("${WORKSPACE}/${majorMc}") {
|
||||
sh "./gradlew --stop"
|
||||
archiveArtifacts artifacts: 'artifacts/*.jar'
|
||||
|
||||
@@ -71,4 +76,5 @@ pipeline {
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
42
patches/1.21.6/.jenkins/Jenkinsfile.deploy.patch
Normal file
42
patches/1.21.6/.jenkins/Jenkinsfile.deploy.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
--- a/.jenkins/Jenkinsfile.deploy
|
||||
+++ b/.jenkins/Jenkinsfile.deploy
|
||||
@@ -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}",
|
@@ -1,20 +1,76 @@
|
||||
--- a/.jenkins/Jenkinsfile.snapshot
|
||||
+++ b/.jenkins/Jenkinsfile.snapshot
|
||||
@@ -3,7 +3,7 @@
|
||||
@@ -3,8 +3,8 @@
|
||||
def JDK = "21";
|
||||
def majorMc = "1.21.6";
|
||||
def modLoaders = "neoforge|fabric|quilt|paper";
|
||||
-def supportedMc = "25w19a";
|
||||
-def reltype = "experimental";
|
||||
+def supportedMc = "1.21.6";
|
||||
def reltype = "experimental";
|
||||
+def reltype = "snapshot";
|
||||
|
||||
pipeline {
|
||||
@@ -63,7 +63,7 @@
|
||||
projectIcon: "${projectIcon}",
|
||||
modLoaders: "${modLoaders}",
|
||||
minecraftVersions: "${supportedMc}",
|
||||
agent {
|
||||
@@ -38,15 +38,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}"
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -54,21 +58,23 @@
|
||||
|
||||
post {
|
||||
always {
|
||||
- sh "./gradlew --stop"
|
||||
- archiveArtifacts artifacts: 'artifacts/*.jar'
|
||||
-
|
||||
- fddsnapshotter apiKey: env.PLATFORM_KEY,
|
||||
- projectSlug: "craterlib",
|
||||
- projectName: "${projectName}",
|
||||
- projectIcon: "${projectIcon}",
|
||||
- modLoaders: "${modLoaders}",
|
||||
- minecraftVersions: "${supportedMc}",
|
||||
- type: "experimental",
|
||||
- dependsOn: "",
|
||||
- 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}",
|
||||
+ type: "snapshot",
|
||||
dependsOn: "",
|
||||
failWebhook: env.SSS_WEBHOOK,
|
||||
publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
|
||||
+ dependsOn: "",
|
||||
+ failWebhook: env.SSS_WEBHOOK,
|
||||
+ publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
|
||||
+
|
||||
+ deleteDir()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user