[DEV] Upstream fixes and fix jenkins config

This commit is contained in:
2024-05-09 18:41:17 +02:00
parent 09ec0363be
commit 389ac90e46
4 changed files with 30 additions and 13 deletions

View File

@@ -18,24 +18,32 @@ pipeline {
}
stage("Prepare") {
steps {
sh "chmod +x ./dev/gradlew"
sh "./dev/gradlew clean"
sh "chmod +x ./gradlew"
sh "./gradlew cleanWorkspace"
sh "./gradlew setupWorkspace"
}
}
stage("Publish to Modrinth/Curseforge") {
steps {
sh "./dev/gradlew publishMod -Prelease=true"
dir('dev') {
sh "chmod +x ./gradlew"
sh "./gradlew publishMod -Prelease=true"
}
}
}
stage("Publish to Maven") {
steps {
sh "./dev/gradlew publish -Prelease=true"
dir('dev') {
sh "./gradlew publish -Prelease=true"
}
}
}
}
post {
always {
sh "./dev/gradlew --stop"
dir('dev') {
sh "./gradlew --stop"
}
deleteDir()
discordSend webhookURL: env.FDD_WH_ADMIN,

View File

@@ -22,21 +22,28 @@ pipeline {
stage("Prepare") {
steps {
sh "chmod +x ./dev/gradlew"
sh "./dev/gradlew clean"
sh "chmod +x ./gradlew"
sh "./gradlew cleanWorkspace"
sh "./gradlew setupWorkspace"
}
}
stage("Build") {
steps {
sh "./dev/gradlew build"
dir('dev') {
sh "chmod +x ./gradlew"
sh "./gradlew clean"
sh "./gradlew build"
}
}
}
stage("Publish to Maven") {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "./dev/gradlew publish"
dir('dev') {
sh "./gradlew publish"
}
}
}
}
@@ -44,8 +51,9 @@ pipeline {
post {
always {
sh "./dev/gradlew --stop"
archiveArtifacts artifacts: 'dev/artifacts/*.jar'
dir('dev') {
sh "./gradlew --stop"
archiveArtifacts artifacts: 'artifacts/*.jar'
fddsnapshotter apiKey: env.PLATFORM_KEY,
projectSlug: "craterlib",
@@ -56,6 +64,7 @@ pipeline {
failWebhook: env.SSS_WEBHOOK,
publishWebhooks: "${env.SSS_WEBHOOK}|${env.FDD_WH}"
}
deleteDir()
}
}

View File

@@ -1,6 +1,6 @@
plugins {
id 'java'
id "com.hypherionmc.modutils.orion" version "1.0.+"
id "com.hypherionmc.modutils.orion" version "1.0.13"
}
orionporting {

View File

@@ -1 +1 @@
97d8eaa5e8b37fb291f6e5731a4659d4749dee0b
7bbbd7be62884a1f37aaf13f2d994b047ccac32a