Skip to content

Commit 8b032fe

Browse files
committed
pipeline(bosh-precompile): add log to generate-xxx-name task
To ease understanding of some errors occuring in this step.
1 parent 531f181 commit 8b032fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

concourse/pipelines/template/bosh-precompile-pipeline.yml.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,17 @@ jobs:
583583
args:
584584
- -ec
585585
- |
586+
echo "List release tgz (only one expected)"
587+
ls -l release/*.tgz
588+
echo "List stemcells (only one expected)"
589+
ls -l stemcell/*.tgz
586590
RELEASE_INFO=$(bosh inspect-local-release --json release/*.tgz | jq '.Tables|.[0]|.Rows|.[0]')
587591
export RELEASE_NAME=$(echo ${RELEASE_INFO} | jq -r '.["name"]')
588592
export RELEASE_VERSION=$(echo ${RELEASE_INFO} | jq -r '.["version"]')
589593
STEMCELL_INFO=$(bosh inspect-local-stemcell --json stemcell/*.tgz | jq '.Tables|.[0]|.Rows|.[0]')
590594
export STEMCELL_OS=$(echo ${STEMCELL_INFO} | jq -r '.["os"]')
591595
export STEMCELL_VERSION=$(echo ${STEMCELL_INFO} | jq -r '.["version"]')
592-
596+
echo "Generating tar name: ${RELEASE_NAME}-${RELEASE_VERSION}-${STEMCELL_OS}-${STEMCELL_VERSION}.tgz"
593597
cp release/*.tgz result-dir/"${RELEASE_NAME}-${RELEASE_VERSION}-${STEMCELL_OS}-${STEMCELL_VERSION}.tgz"
594598
- put: compiled-<%= release %>
595599
attempts: <%= concourse_retry[:push] %>

0 commit comments

Comments
 (0)