feat: edit Jenkinsfile
Some checks failed
ParrotXray/CureOS/pipeline/head There was a failure building this commit
Some checks failed
ParrotXray/CureOS/pipeline/head There was a failure building this commit
This commit is contained in:
parent
c0f78339a7
commit
2759ba98e2
47
Jenkinsfile
vendored
47
Jenkinsfile
vendored
@ -41,31 +41,30 @@ node('ccis') {
|
||||
|
||||
} finally {
|
||||
stage('Cleanup') {
|
||||
sh """
|
||||
docker ps -a --filter "label=jenkins-build=${JOB_NAME}" -q | xargs -r docker rm -f || true
|
||||
docker rmi ${env.IMAGE_ID} || true
|
||||
"""
|
||||
sh """
|
||||
docker ps -a --filter "label=jenkins-build=${JOB_NAME}" -q | xargs -r docker rm -f || true
|
||||
docker rmi ${env.IMAGE_ID} || true
|
||||
"""
|
||||
}
|
||||
stage('Notify to Discord') {
|
||||
withCredentials([string(credentialsId: 'f874845f-4cee-48a6-a581-33db517be86a', variable: 'https://discord.com/api/webhooks/1438181389534236793/pdbdWbJL1MAAw_YCtXjZ8YqjJ38VQkf_HA5QzQruKEF94aFaTGDcRciZVsauIgHJJJdw')]) {
|
||||
script {
|
||||
def status = currentBuild.currentResult
|
||||
def desc = """
|
||||
**Job:** ${env.JOB_NAME}
|
||||
**Build #:** ${env.BUILD_NUMBER}
|
||||
**Status:** ${status}
|
||||
**URL:** ${env.BUILD_URL}
|
||||
""".stripIndent()
|
||||
stage('Notify to Discord') {
|
||||
withCredentials([string(credentialsId: 'f874845f-4cee-48a6-a581-33db517be86a', variable: 'https://discord.com/api/webhooks/1438181389534236793/pdbdWbJL1MAAw_YCtXjZ8YqjJ38VQkf_HA5QzQruKEF94aFaTGDcRciZVsauIgHJJJdw')]) {
|
||||
script {
|
||||
def status = currentBuild.currentResult
|
||||
def desc = """
|
||||
**Job:** ${env.JOB_NAME}
|
||||
**Build #:** ${env.BUILD_NUMBER}
|
||||
**Status:** ${status}
|
||||
**URL:** ${env.BUILD_URL}
|
||||
""".stripIndent()
|
||||
|
||||
discordSend(
|
||||
webhookURL: DISCORD_WEBHOOK_URL,
|
||||
title: "Jenkins Build - ${status}",
|
||||
description: desc,
|
||||
result: status
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
discordSend(
|
||||
webhookURL: DISCORD_WEBHOOK_URL,
|
||||
title: "Jenkins Build - ${status}",
|
||||
description: desc,
|
||||
result: status
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user