openshift-jenkins-demo icon indicating copy to clipboard operation
openshift-jenkins-demo copied to clipboard

Deploy to DEV pipeline's stage FAILS

Open cbeldacap opened this issue 7 years ago • 8 comments

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"

issue-ci-1

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.

cbeldacap avatar Sep 20 '17 11:09 cbeldacap

I have the same issue.

mrgleam avatar Oct 09 '17 07:10 mrgleam

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 avatar Oct 11 '17 21:10 ssdowd

@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 avatar Oct 12 '17 04:10 mrgleam

@mrgleam Thanks! That fixed it.

ssdowd avatar Oct 12 '17 14:10 ssdowd

This link is dead, could you please provide another one ?

tenderitaf avatar May 02 '18 18:05 tenderitaf

Yes 404 error on the link

Johnny2136 avatar Jul 25 '18 16:07 Johnny2136

@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 avatar Jul 26 '18 17:07 ptrckq

@ptrckq ecellent! your solution worked for me, Thanks so much!!! :smiley:

Johnny2136 avatar Aug 06 '18 18:08 Johnny2136