From 884db4877eb0050a1d78e445e130da8d80581129 Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Wed, 8 Oct 2025 18:51:12 +0200 Subject: [PATCH] Updates parameter descriptions and JSON construction Updates descriptions of Jenkins parameters for clarity. Refactors the construction of the JSON string containing URLs to improve readability. --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9bb2125..0e8a707 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,8 +2,8 @@ pipeline { agent { label 'windows' } parameters { - string(name: 'DISCORD_USER_ID', defaultValue: '378262266723696651', description: 'ID Discord pour les DMs') - choice(name: 'BUILD_TYPE', choices: ['Both', 'Debug', 'Release'], description: 'Type de build à lancer') + string(name: 'DISCORD_USER_ID', defaultValue: '378262266723696651', description: 'ID Discord pour recevoir le DM') + choice(name: 'BUILD_TYPE', choices: ['Both', 'Debug', 'Release'], description: 'Type de build à exécuter') } options { @@ -99,8 +99,8 @@ pipeline { urlsList << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip" } - // Construire correctement tableau JSON d'URLs sous forme de chaîne à injecter dans curl - def urlsJson = "[${urlsList.collect { "\"${it}\"" }.join(',')}]" + def urlsJson = urlsList.collect { "\"${it}\"" }.join(',') + urlsJson = "[${urlsJson}]" bat """ curl -X POST http://192.168.1.131:2500/ci-notify ^