search cancel

PCF Java Build Packs prior to and including 4.36 unusable for with Introscope agent as repository location has changed

book

Article ID: 241881

calendar_today

Updated On:

Products

CA Application Performance Management SaaS

Issue/Introduction

Due to switch from bintray to JFrog and lack of redirect on old bintray URL, PCF Java Build Packs up to 4.36 have repository_root value of https://ca.bintray.com/apm-agents in java-buildpack/config/introscope_agent.yml which is no longer valid (i.e. https://ca.bintray.com/apm-agents). 

However the link from latest Java Build Packs (https://packages.broadcom.com/artifactory/apm-agents/) contains the older agents too.

Since I assume redirect may not be possible, how can we use the earlier buildpacks?

Environment

Release : SAAS

Component :

Resolution

The agent repository location was changed and it is not possible to retrospectively correct this in existing published build packs. If build pack of release 4.36 or earlier is needed then the recommended action is to override the default repository root the manifest.yml file that is created  e.g.

---
applications:
- name: sample-music
  memory: 1G
  buildpack: https://github.com/cloudfoundry/java-buildpack.git
  random-route: true
  path: build/libs/spring-music-1.0.jar
  health-check-type: none
  services:
    - introscope
  env:
    JBP_CONFIG_INTROSCOPE_AGENT: '{ version: 20.11.0_20, repository_root: "https://packages.broadcom.com/artifactory/apm-agents" }'