Don't allow empty string in uri for git resource
This commit is contained in:
@@ -380,7 +380,7 @@ public class PipelineYmlSchema implements YamlSchema {
|
||||
// git :
|
||||
{
|
||||
AbstractType source = f.ybean("GitSource");
|
||||
addProp(source, "uri", t_string).isRequired(true);
|
||||
addProp(source, "uri", t_ne_string).isRequired(true);
|
||||
addProp(source, "branch", t_ne_string); //It's more complicated than that! Its only required in 'put' step. So we'll check this as a contrain in put steps!
|
||||
addProp(source, "private_key", t_ne_string);
|
||||
addProp(source, "username", t_ne_string);
|
||||
|
||||
Reference in New Issue
Block a user