ok now it should work
This commit is contained in:
parent
58cda6994f
commit
a46e6406b6
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
@ -7,6 +7,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
discordWebhook = credentials('discordWebhook')
|
discordWebhook = credentials('discordWebhook')
|
||||||
|
CURSEFORGE_TOKEN = credentials('curseforgeApiKey')
|
||||||
|
MODRINTH_TOKEN = credentials('modrinthApiKey')
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Clean') {
|
stage('Clean') {
|
||||||
|
@ -23,13 +25,24 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
when { anyOf {
|
when {
|
||||||
branch 'main'
|
anyOf {
|
||||||
branch '1.18'
|
branch 'main'
|
||||||
} }
|
}
|
||||||
steps {
|
}
|
||||||
echo 'Deploying to Maven'
|
stages {
|
||||||
sh './gradlew publish sendWebhook'
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue