From 89fe9dda2d8466105ef4f5bdb12f683831abc01a Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Thu, 6 Oct 2022 14:45:12 +0200 Subject: [PATCH] fix syntax --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee9f06d..8caf5f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -322,11 +322,11 @@ def deployJobs(def serviceList){ for (def record : serviceList) { println("Processing record: "+record) service=record.split(","); - stage(service.get(0)){ + stage(service[0]){ println "Deploy on going of component: ${service.get(0)}" catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { - checkup(service.get(0), service.get(1), service.get(2)); - deploy(service.get(0), service.get(1), service.get(2)); + checkup(service[0], service[ 1 ], service[2]); + deploy(service[0], service[ 1 ], service[2]); } } }