Hopefully this will work now?
This commit is contained in:
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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}",
|
||||
|
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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}",
|
||||
@@ -53,4 +61,4 @@ pipeline {
|
||||
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})\nStatus: ${currentBuild.currentResult}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
def majorMc = "1.19.3/4";
|
||||
def majorMc = "1.19.3";
|
||||
def JDK = "17"
|
||||
|
||||
pipeline {
|
||||
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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,7 +1,7 @@
|
||||
def projectName = "CraterLib";
|
||||
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
|
||||
def JDK = "17";
|
||||
def majorMc = "1.19.3/4";
|
||||
def majorMc = "1.19.3";
|
||||
def modLoaders = "forge|fabric|quilt";
|
||||
def supportedMc = "1.19.3|1.19.4";
|
||||
def reltype = "snapshot";
|
||||
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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}",
|
||||
|
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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}",
|
||||
|
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -26,25 +26,33 @@ pipeline {
|
||||
}
|
||||
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,7 +1,7 @@
|
||||
def projectName = "CraterLib";
|
||||
def projectIcon = "https://cdn.modrinth.com/data/Nn8Wasaq/a172c634683a11a2e9ae593e56eba7885743bb44.png";
|
||||
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";
|
||||
@@ -32,15 +32,19 @@ pipeline {
|
||||
|
||||
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,18 +52,21 @@ pipeline {
|
||||
|
||||
post {
|
||||
always {
|
||||
sh "./gradlew --stop"
|
||||
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}"
|
||||
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()
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
dd69ecd7cc75cc91bf2bab79fb8d3d473b43f268
|
||||
6b05af6c83d8766cad3894ab322fef69c3152bea
|
@@ -8,3 +8,43 @@
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -16,3 +16,62 @@
|
||||
|
||||
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()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,3 +8,43 @@
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -16,3 +16,62 @@
|
||||
|
||||
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()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3,8 +3,48 @@
|
||||
@@ -1,5 +1,5 @@
|
||||
-def JDK = "21"
|
||||
-def majorMc = "1.21";
|
||||
+def majorMc = "1.19.3/4";
|
||||
+def majorMc = "1.19.3";
|
||||
+def JDK = "17"
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -9,10 +9,69 @@
|
||||
-def supportedMc = "1.21";
|
||||
-def reltype = "port";
|
||||
+def JDK = "17";
|
||||
+def majorMc = "1.19.3/4";
|
||||
+def majorMc = "1.19.3";
|
||||
+def modLoaders = "forge|fabric|quilt";
|
||||
+def supportedMc = "1.19.3|1.19.4";
|
||||
+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()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,3 +8,43 @@
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -16,3 +16,62 @@
|
||||
|
||||
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()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,3 +8,43 @@
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -16,3 +16,62 @@
|
||||
|
||||
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()
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,3 +8,43 @@
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
@@ -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}",
|
||||
|
@@ -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