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:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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 ^
|
||||||
|
|||||||
Reference in New Issue
Block a user