Jenkins Test #6

This commit is contained in:
2025-10-08 17:16:35 +02:00
parent 90a43254f3
commit 715955ef6a

57
Jenkinsfile vendored
View File

@@ -80,36 +80,29 @@ pipeline {
} }
post { post {
success { success {
script { script {
def debugUrl = "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Debug.zip" def debugUrl = "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Debug.zip"
def releaseUrl = "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip" def releaseUrl = "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip"
sh """ bat """
curl -X POST http://localhost:3000/ci-notify \ curl -X POST http://localhost:2500/ci-notify ^
-H 'Content-Type: application/json' \ -H "Content-Type: application/json" ^
-d '{ -d "{\\"userId\\": \\"VOTRE_USER_ID_DISCORD\\",\\"status\\": \\"success\\",\\"urls\\":[\\"${debugUrl}\\",\\"${releaseUrl}\\"]}"
"userId": "VOTRE_USER_ID_DISCORD", """
"status": "success", }
"urls": ["${debugUrl}", "${releaseUrl}"] }
}' failure {
""" script {
} bat """
} curl -X POST http://localhost:2500/ci-notify ^
failure { -H "Content-Type: application/json" ^
script { -d "{\\"userId\\": \\"VOTRE_USER_ID_DISCORD\\",\\"status\\": \\"failure\\",\\"urls\\":[]}"
sh """ """
curl -X POST http://localhost:3000/ci-notify \ }
-H 'Content-Type: application/json' \ }
-d '{ always {
"userId": "VOTRE_USER_ID_DISCORD", cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
"status": "failure", }
"urls": [] }
}'
"""
}
}
always {
cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
}
}
} }