Misleading error message when using deploy
Hi, we tried to deploy a Java application via:
knctl deploy -s cf-sample-app --service-account docker-service-account --image DOCKERIMAGE --namespace test --template buildpack -d=.
Similar like #20 there was no error message and it hanged.
[...]
Tagging older revision 'cf-sample-app-00011' as 'previous'
Annotating new revision 'cf-sample-app-00012'
Looking at the revision we saw following error message:
buildtemplates.build.knative.dev "buildpack" not found
It turned out that we missed a ENV var to specify the jar/war path.
When using knctl build we saw a meaningful error message.
build-step-build | None of the buildpacks detected a compatible application
@MMisoch to clarify, did you have to add build template before getting a better error message?
@cppforlife we used the exact same command with build create -b instead of deploy -s. After that we got the error message written above.
The build create and deploy command worked as expected after we specified the env-var PACK_APP_ZIP to the folder, where our .jar file is located.