From 912baf119879e8d5b113e64b9a98e169ef3aa516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 13 May 2025 10:46:19 +0200 Subject: [PATCH] Fix jenkins tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Defining a variable on top level is now causing the pipeline to not execute anything and just report success. Signed-off-by: Lubomír Sedlář --- tests/Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Jenkinsfile b/tests/Jenkinsfile index ebd56d43..0c430242 100644 --- a/tests/Jenkinsfile +++ b/tests/Jenkinsfile @@ -1,5 +1,3 @@ -def DUFFY_SESSION_ID - pipeline { agent { label 'cico-workspace' @@ -17,6 +15,7 @@ pipeline { if (params.REPO == "" || params.BRANCH == "") { error "Please supply both params (REPO and BRANCH)" } + def DUFFY_SESSION_ID try { echo "Requesting duffy node ..." def session_str = sh returnStdout: true, script: "set +x; duffy client --url https://duffy.ci.centos.org/api/v1 --auth-name fedora-infra --auth-key $CICO_API_KEY request-session pool=virt-ec2-t2-centos-9s-x86_64,quantity=1"