Jenkins Test #15
This commit is contained in:
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -60,7 +60,6 @@ pipeline {
|
|||||||
-DestinationPath \"${env.WORKSPACE}\\builds\\KhaoticEngineReborn_Debug.zip\" `
|
-DestinationPath \"${env.WORKSPACE}\\builds\\KhaoticEngineReborn_Debug.zip\" `
|
||||||
-Force
|
-Force
|
||||||
"""
|
"""
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Package Release') {
|
stage('Package Release') {
|
||||||
@@ -89,16 +88,15 @@ pipeline {
|
|||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
script {
|
script {
|
||||||
// Prépare la liste d'URL brutes
|
def urls = []
|
||||||
def urlsList = []
|
|
||||||
if (params.BUILD_TYPE in ['Both','Debug']) {
|
if (params.BUILD_TYPE in ['Both','Debug']) {
|
||||||
urlsList << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Debug.zip"
|
urls << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Debug.zip"
|
||||||
}
|
}
|
||||||
if (params.BUILD_TYPE in ['Both','Release']) {
|
if (params.BUILD_TYPE in ['Both','Release']) {
|
||||||
urlsList << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip"
|
urls << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip"
|
||||||
}
|
}
|
||||||
// Fabrication manuelle d'un JSON array de strings
|
// Construire le JSON correct pour l'envoi
|
||||||
def urlsJson = urlsList.collect { "\"${it}\"" }.join(',' )
|
def urlsJson = urls.collect { "\"${it}\"" }.join(',')
|
||||||
urlsJson = "[${urlsJson}]"
|
urlsJson = "[${urlsJson}]"
|
||||||
|
|
||||||
bat """
|
bat """
|
||||||
@@ -117,5 +115,8 @@ pipeline {
|
|||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
always {
|
||||||
|
cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user