Files
CraterLib/Jenkinsfile
Barrett Ray 994cb313fa chore: Upgrade to 1.20.1
Manually edited all mentions of "1.20" to "1.20.1" and upgraded
dependencies as necessary.

It'd probably be a good idea to get some global variables going for the
game, Forge, and Fabric version(s) - just in case it becomes more
necessary. :)
2023-06-17 21:02:37 -05:00

45 lines
1.5 KiB
Groovy

pipeline {
agent {
label "master"
}
tools {
jdk "JAVA17"
}
stages {
stage("Notify Discord") {
steps {
discordSend webhookURL: env.FDD_WH_ADMIN,
title: "Deploy Started: CraterLib 1.20.1 Deploy #${BUILD_NUMBER}",
link: env.BUILD_URL,
result: 'SUCCESS',
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})"
}
}
stage("Prepare") {
steps {
sh "curl https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-forge.md --output changelog-forge.md"
sh "curl https://raw.githubusercontent.com/hypherionmc/changelogs/main/craterlib/changelog-fabric.md --output changelog-fabric.md"
sh "chmod +x ./gradlew"
sh "./gradlew clean"
}
}
stage("Publish") {
steps {
sh "./gradlew publishMod publish -Prelease=true"
}
}
}
post {
always {
sh "./gradlew --stop"
deleteDir()
discordSend webhookURL: env.FDD_WH_ADMIN,
title: "CraterLib 1.20.1 Deploy #${BUILD_NUMBER}",
link: env.BUILD_URL,
result: currentBuild.currentResult,
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})\nStatus: ${currentBuild.currentResult}"
}
}
}