tektoncd / catalog

Catalog of shared Tasks and Pipelines.
Apache License 2.0
660 stars 575 forks source link

Task "buildpack-phases": ERROR: failed to : set API for buildpack 'paketo-buildpacks/ca-certificates@3.6.3': buildpack API version '0.7' is incompatible with the lifecycle #1223

Open johan974 opened 9 months ago

johan974 commented 9 months ago

Task: "buildpack-phases"

Expected Behavior

Detect the buildpacks, (maven) build the soures to a JAR, build a Docker image.

Actual Behavior

When running the Task "buildpack-phases" with builder-image "gcr.io/buildpacks/builder:v1" as part of a custom pipeline I get this error:

ERROR: failed to : set API for buildpack 'google.java.runtime@0.9.1': buildpack API version '0.8' is incompatible with the lifecycle

When running it with a "paketobuildpacks/builder:base" builder I get this error:

ERROR: failed to : set API for buildpack 'paketo-buildpacks/ca-certificates@3.6.3': buildpack API version '0.7' is incompatible with the lifecycle

Steps to Reproduce the Problem

  1. This is my pipeline task

This is part of my pipeline. I have credentials for SSH and docker set via a ServiceAccount.

- name: build
  taskRef:
    name: buildpacks-phases
  runAfter:
    - fetch-repository
  params:
    - name: APP_IMAGE
      value: $(params.TARGET_IMAGE):$(params.TARGET_VERSION)
    - name: BUILDER_IMAGE
      value: "gcr.io/buildpacks/builder:v1"
    - name: SOURCE_SUBPATH
      value: "."
  workspaces:
    - name: source
      workspace: source-workspace

I also tried:

- name: build
  taskRef:
    name: buildpacks-phases
  runAfter:
    - fetch-repository
  params:
    - name: APP_IMAGE
      value: $(params.TARGET_IMAGE):$(params.TARGET_VERSION)
    - name: BUILDER_IMAGE
      value: "paketobuildpacks/builder:base"
    - name: SOURCE_SUBPATH
      value: "."
    - name: ENV_VARS
      value:
        - CNB_PLATFORM_API=0.5

Because of the warning of a deprecated CNB_PLATFORM_API of 0.4.

  1. Just run the pipeline

Additional Info

johan974 commented 8 months ago

Anybody out there? Is this the right place to suggest issues?