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\" `
|
||||
-Force
|
||||
"""
|
||||
|
||||
}
|
||||
}
|
||||
stage('Package Release') {
|
||||
@@ -89,16 +88,15 @@ pipeline {
|
||||
post {
|
||||
success {
|
||||
script {
|
||||
// Prépare la liste d'URL brutes
|
||||
def urlsList = []
|
||||
def urls = []
|
||||
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']) {
|
||||
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
|
||||
def urlsJson = urlsList.collect { "\"${it}\"" }.join(',' )
|
||||
// Construire le JSON correct pour l'envoi
|
||||
def urlsJson = urls.collect { "\"${it}\"" }.join(',')
|
||||
urlsJson = "[${urlsJson}]"
|
||||
|
||||
bat """
|
||||
@@ -117,5 +115,8 @@ pipeline {
|
||||
"""
|
||||
}
|
||||
}
|
||||
always {
|
||||
cleanWs(deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user