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.
This commit is contained in:
2025-10-08 18:51:12 +02:00
parent 38569b18a7
commit 884db4877e

8
Jenkinsfile vendored
View File

@@ -2,8 +2,8 @@ pipeline {
agent { label 'windows' } agent { label 'windows' }
parameters { parameters {
string(name: 'DISCORD_USER_ID', defaultValue: '378262266723696651', description: 'ID Discord pour les DMs') 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 à lancer') choice(name: 'BUILD_TYPE', choices: ['Both', 'Debug', 'Release'], description: 'Type de build à exécuter')
} }
options { options {
@@ -99,8 +99,8 @@ pipeline {
urlsList << "${env.BUILD_URL}artifact/builds/KhaoticEngineReborn_Release.zip" 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 """ bat """
curl -X POST http://192.168.1.131:2500/ci-notify ^ curl -X POST http://192.168.1.131:2500/ci-notify ^