Jenkins Test #6
This commit is contained in:
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@@ -84,27 +84,19 @@ pipeline {
|
|||||||
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 {
|
failure {
|
||||||
script {
|
script {
|
||||||
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\\": \\"failure\\",\\"urls\\":[]}"
|
||||||
"userId": "VOTRE_USER_ID_DISCORD",
|
|
||||||
"status": "failure",
|
|
||||||
"urls": []
|
|
||||||
}'
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -112,4 +104,5 @@ pipeline {
|
|||||||
cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
|
cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user