better publishin messages
This commit is contained in:
parent
62a2aa3f65
commit
253e6a252b
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -23,7 +23,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Publish') {
|
||||
when { branch 'main' }
|
||||
when { anyOf {
|
||||
branch 'main'
|
||||
branch '1.18'
|
||||
} }
|
||||
steps {
|
||||
echo 'Deploying to Maven'
|
||||
sh './gradlew publish sendWebhook'
|
||||
|
|
|
@ -212,7 +212,8 @@ task sendWebhook {
|
|||
|
||||
def message = new Message()
|
||||
message.setUsername("Patreon Early Access")
|
||||
message.setContent("New **$modName** release! Download it here: ${System.getenv("BUILD_URL")}\nChangelog:\n${getGitChangelog()}")
|
||||
message.setContent("New **$modName** prerelease -- build ${System.getenv("BUILD_NUMBER")} for $minecraftVersion! \n" +
|
||||
"Download it here: ${System.getenv("BUILD_URL")}\nChangelog:\n${getGitChangelog()}")
|
||||
|
||||
webhook.sendMessage(message)
|
||||
} catch (ignored) {
|
||||
|
|
Loading…
Reference in a new issue