Last active
June 10, 2024 20:47
-
-
Save cowlinator/2c313de4ae67b06d6768c1f28331b163 to your computer and use it in GitHub Desktop.
jenk hasVariable (keep me)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent none | |
stages { | |
stage('stage') { | |
steps { | |
script { | |
if (binding.hasVariable('superVariable')) { | |
echo("superVariable == 0: ") | |
echo(superVariable == 0) | |
} | |
else { | |
echo("no var") | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment