ValidatingString Parameter issue in Jenkinsfile

23 views
Skip to first unread message

Ven H

unread,
Oct 1, 2020, 6:11:06 AM10/1/20
to jenkins...@googlegroups.com
I am using the following parameter which should validate empty string and show the error message, but the validation message should disappear if there is an non empty string input for the parameter. But the parameter is not working. Does anyone have any idea? I searched, but couldn't find anything. Please help.

 parameters {
        validatingString(name: "test", defaultValue: "", regex: /^(?!\s*$).+/, failedValidationMessage: "Validation failed!", description: "test desc")
    }


Regards,
Venkatesh
Reply all
Reply to author
Forward
0 new messages