Description of problem: Log in web console,try to create application using xpass-template on web console.Such as try to create application using eap6-amq-persistent-sti template,but could not create the application successfully for the error "Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: [triggers[0].type: invalid value 'Github': invalid trigger type, spec.source.git.uri: required value]" Version-Release number of selected component (if applicable): openshift version openshift v3.0.1.0-503-g7cc6deb kubernetes v1.0.0 How reproducible: Always Steps to Reproduce: 1.Log in web console 2.Create a project 3.Create an application using eap6-amq-persistent-sti template Actual results: 3.Failed to create the application for the error "Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: [triggers[0].type: invalid value 'Github': invalid trigger type, spec.source.git.uri: required value]" Expected results: Could create the application successfully Additional info:
All the xpaas templates seem to be setting up a Github trigger the same way. Can you check if they are correct?
The value needs to be either "github" or "GitHub" and not "Github" https://github.com/openshift/origin/blob/master/pkg/build/api/types.go#L376-L389 assigning to Rob who can fix the original templates, but, Scott, if we're shipping a copy maybe we can fix our copy in the meantime?
I'll update ansible and ship it for the installer.
https://github.com/openshift/openshift-ansible/pull/398
Sun Wei, I've updated the master branch of our ansible repo and pushed the change to install.openshift.com. Would you mind testing once again?
Try to test this bug using the latest env,still could not create the application using xpass templates.Now the error is : Cannot create BuildConfig eap-app. BuildConfig "eap-app" is invalid: spec.source.git.uri: required value Cannot create BuildConfig jws-app. BuildConfig "jws-app" is invalid: spec.source.git.uri: required value
In the BuildConfig spec I see: "source": { "type": "Git", "git": { "uri": "${GIT_URI}", "ref": "${GIT_REF}" }, "contextDir":"${GIT_CONTEXT_DIR}" }, In the template parameters I see: { "description": "Git source URI for application", "name": "GIT_URI" }, Is this how it's supposed to be done?
In this case "yes", there is no default URI being provided for those templates. you need to supply the URI of a jee repo that can be built for the GIT_URI parameter. this one should work: https://github.com/bparees/openshift-jee-sample we will be trying to update the templates to all have valid URIs by default, but for now this is working correctly.
fixing the actual templates here: https://github.com/jboss-openshift/application-templates/pull/27
Now could create the application using templates if I edit some parameters. So verified this bug. # openshift version openshift v3.0.1.0-503-g7cc6deb kubernetes v1.0.0
Rob Cernich <rcernich> updated the status of jira CLOUD-191 to Resolved
Kevin Conner <kevin.conner> updated the status of jira CLOUD-191 to Closed