generated from AriasCreations/vsmodtemplate
Put if statement into script block
This commit is contained in:
parent
9d0b8f68b0
commit
a871192ce4
1 changed files with 6 additions and 2 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue