Regex - Jenkins check empty variable

空扰寡人 提交于 2019-12-08 10:32:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!