Skip to content

Misleading error message when using deploy #56

@MMisoch

Description

@MMisoch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions