After issuing a fly
command to a Concourse pipeline, I would like to version this new pipeline.
I have tried maintain a separate `version' file on GIT repo.
But my requirement is to display this version on pipeline job name.
Please see the image where a version has to be appended
Adding more details:
I am looking at facility in GIT to watch for commits on a particular folder (say xyz
). I got something similar the below:
The other answer for this question is achieved with below code:
plan:
- get: test-version-resource
- task: send-version
config:
platform: linux
image_resource:
type: docker-image
source:
repository: gliderlabs/alpine
tag: latest
inputs:
- name: test-version-resource
run:
path: /bin/sh
args:
- -c
- |
ls -la test-version-resource