Don't allow empty string in uri for git resource

This commit is contained in:
Kris De Volder
2017-04-12 16:32:09 -07:00
parent 4cfca1693f
commit 20152be6bf

View File

@@ -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);