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