get java-buildpack using Concourse git-resource<tag-version-java-buildpack> in your Concourse task. error: pathspec 'v4.21' did not match any file(s) known to git
pipeline.yml.
resources:
- name: jbp
type: git
source:
uri: https://github.com/cloudfoundry/java-buildpack.git
branch: master
jobs:
- name: jTest
plan:
- get: jbp
- task: taTest
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine/git
tag: latest
inputs:
- name: jbp
run:
path: sh
args:
- -exc
- |
export TERM=xterm
cd jbp
git tag
git tag | wc -l
git checkout v4.21
Below is the real outcome of when you run a build of the pipeline above:
tag_filter property in resources section of your pipeline.yml file to be able to see the version and git checkout that is required.pipeline.yml.
resources:
- name: jbp
type: git
source:
uri: https://github.com/cloudfoundry/java-buildpack.git
icon: github-circle
tag_filter: v*
jobs:
- name: jTest
plan:
- get: jbp
- task: taTest
config:
platform: linux
image_resource:
type: docker-image
source:
repository: alpine/git
tag: latest
inputs:
- name: jbp
run:
path: sh
args:
- -exc
- |
export TERM=xterm
cd jbp
git tag
git tag | wc -l
git checkout v4.21
Below is the outcome of when you run a build of the pipeline above, the output is clipped to just show the output at the end of the build: