Fix jenkins tests

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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2025-05-13 10:46:19 +02:00
parent 0badc6f3c2
commit 912baf1198

3
tests/Jenkinsfile vendored
View file

@ -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"