openshift-jenkins-demo
openshift-jenkins-demo copied to clipboard
Deploy to DEV pipeline's stage FAILS
I've encountered a problem while running the Jenkins pipeline in the "Deploy to DEV" stage, in the 5th line:
sh "oc start-build tasks --from-dir=oc-build --wait=true -n dev"
I've followed README's instructions with no further configuration.
I'm using Windows10 with 8GB RAM. SonarQube didn't get deployed. I've commented the pipeline's stage in which it is needed, so I guess it is not necessary to have it "up".
Thanks a lot in advance.
I have the same issue.
Seeing error at same stage. Mine fails with this output:
[cicd-tasks-pipeline] Running shell script
+ oc new-build --name=tasks --image-stream=jboss-eap70-openshift:1.5 --binary=true --labels=app=tasks -n dev
error: no match for "jboss-eap70-openshift:1.5"
The 'oc new-build' command will match arguments to the following types:
1. Images tagged into image streams in the current project or the 'openshift' project
- if you don't specify a tag, we'll add ':latest'
2. Images in the Docker Hub, on remote registries, or on the local Docker engine
3. Git repository URLs or local paths that point to Git repositories
--allow-missing-images can be used to force the use of an image that was not matched
See 'oc new-build -h' for examples.
+ true
I've tried adding --allow-missing-images=true
and --allow-missing-imagestream-tags=true
, but get the same error.
@ssdowd for this problem, you can follow this step.
If pipeline execution fails with error: no match for "jboss-eap70-openshift", import the jboss imagestreams in OpenShift.
oc login -u system:admin oc create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/jboss-image-streams.json -n openshift
@mrgleam Thanks! That fixed it.
This link is dead, could you please provide another one ?
Yes 404 error on the link
@Johnny2136 @tenderitaf I used this one from troubleshooting section:
oc create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/ose-v1.4.14/eap/eap70-image-stream.json -n openshift
See if this work for you guys.
@ptrckq ecellent! your solution worked for me, Thanks so much!!! :smiley: