Put if statement into script block

This commit is contained in:
zontreck 2024-12-25 01:56:30 -07:00
parent 9d0b8f68b0
commit a871192ce4

8
Jenkinsfile vendored
View file

@ -42,8 +42,12 @@ pipeline {
always {
archiveArtifacts artifacts: "Releases/*.zip"
cleanWs()
if(env.DISCORD_URL != '')
discordSend customAvatarUrl: '', customFile: '', customUsername: '', description: 'This is an automated build of the modification for Vintage Story.', enableArtifactsList: true, footer: '', image: '', link: '', result: '', scmWebUrl: '', thumbnail: '', title: 'Vintage Storage Build Results', webhookURL: env.DISCORD_URL
script {
if(env.DISCORD_URL != '') {
discordSend customAvatarUrl: '', customFile: '', customUsername: '', description: 'This is an automated build of the modification for Vintage Story.', enableArtifactsList: true, footer: '', image: '', link: '', result: '', scmWebUrl: '', thumbnail: '', title: 'Vintage Storage Build Results', webhookURL: env.DISCORD_URL
}
}
}
}
}