Skip to content

Commit 3ca21f5

Browse files
Updating Jenkinsfile for matching env vars
1 parent ef496c1 commit 3ca21f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ pipeline
6868
echo "env.TARGET_REF: ${env.TARGET_REF}"
6969
echo "env.STORE_BUILD: ${env.STORE_BUILD}"
7070

71-
if(env.TARGET_REF != null)
71+
if(env.TARGET_REF != null && env.TARGET_REF != '')
7272
TARGET_REF = env.TARGET_REF
7373

74-
if(env.STORE_BUILD != null)
74+
if(env.STORE_BUILD != null && env.STORE_BUILD != '')
7575
STORE_BUILD = env.STORE_BUILD.toBoolean()
7676

7777
echo "Displaying Webhook Variables:"

0 commit comments

Comments
 (0)