问题
I use a plugin with Jenkins to execute a job with a condition step.
I want to check if the parameter that I use is empty with this regular expression:
^$
And the label field:
${ENV,var="date.test"}
If the parameter is empty the job continue, but if has value it stop. But that does the opposite that I want.
回答1:
I've tried Regular Expression: ${ENV,var="date.test"}
with an empty label and it works.
来源:https://stackoverflow.com/questions/31424679/regex-jenkins-check-empty-variable