diff --git a/Jenkinsfile b/Jenkinsfile index f123277..1ee5cfc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 + } + } } } }