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:
parent
0badc6f3c2
commit
912baf1198
1 changed files with 1 additions and 2 deletions
3
tests/Jenkinsfile
vendored
3
tests/Jenkinsfile
vendored
|
|
@ -1,5 +1,3 @@
|
||||||
def DUFFY_SESSION_ID
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'cico-workspace'
|
label 'cico-workspace'
|
||||||
|
|
@ -17,6 +15,7 @@ pipeline {
|
||||||
if (params.REPO == "" || params.BRANCH == "") {
|
if (params.REPO == "" || params.BRANCH == "") {
|
||||||
error "Please supply both params (REPO and BRANCH)"
|
error "Please supply both params (REPO and BRANCH)"
|
||||||
}
|
}
|
||||||
|
def DUFFY_SESSION_ID
|
||||||
try {
|
try {
|
||||||
echo "Requesting duffy node ..."
|
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"
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue