ok now it should work

This commit is contained in:
petrak@ 2023-04-24 11:19:51 -05:00
parent 58cda6994f
commit a46e6406b6
1 changed files with 20 additions and 7 deletions

27
Jenkinsfile vendored
View File

@ -7,6 +7,8 @@ pipeline {
}
environment {
discordWebhook = credentials('discordWebhook')
CURSEFORGE_TOKEN = credentials('curseforgeApiKey')
MODRINTH_TOKEN = credentials('modrinthApiKey')
}
stages {
stage('Clean') {
@ -23,13 +25,24 @@ pipeline {
}
}
stage('Publish') {
when { anyOf {
branch 'main'
branch '1.18'
} }
steps {
echo 'Deploying to Maven'
sh './gradlew publish sendWebhook'
when {
anyOf {
branch 'main'
}
}
stages {
stage('Deploy Previews') {
steps {
echo 'Deploying previews to various places'
sh './gradlew publish publishToDiscord'
}
}
stage('Deploy releases') {
steps {
echo 'Maybe deploy releases'
sh './gradlew publishCurseforge publishModrinth'
}
}
}
}
}