Update Jenkinsfile

This commit is contained in:
Joseph Robinson
2020-05-16 11:53:48 -07:00
committed by GitHub
parent 50c23fe297
commit 1225c9a974

17
Jenkinsfile vendored
View File

@@ -31,4 +31,21 @@ git submodule update --init --recursive'''
}
}
post {
always {
script {
withCredentials([string(credentialsId: '3e8105ad-8e03-4550-bc66-a27438ec6fb3', variable: 'discordWebhook')]) {
discordSend(
title: "Finished ${currentBuild.currentResult}",
description: '```\n' + getChanges(currentBuild) + '\n```',
successful: currentBuild.resultIsBetterOrEqualTo("SUCCESS"),
result: currentBuild.currentResult,
thumbnail: "https://img.hexeption.co.uk/Magma_Block.png",
webhookURL: "${discordWebhook}"
)
}
//cleanWs()
}
}
}
}