From 69862da9716d1e651c94ece8ba4f7006378ccb66 Mon Sep 17 00:00:00 2001 From: Dennis Bell Date: Wed, 14 Mar 2018 08:21:48 -0700 Subject: [PATCH] Added printing of release notes during rc task --- boshrelease/pipeline.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/boshrelease/pipeline.yml b/boshrelease/pipeline.yml index 20fbba1..32593ef 100644 --- a/boshrelease/pipeline.yml +++ b/boshrelease/pipeline.yml @@ -205,11 +205,41 @@ jobs: - name: rc public: true + serial: true plan: - do: - aggregate: - { get: git, trigger: true, passed: [testflight] } - { get: version, trigger: true, params: {pre: rc} } + - task: release-notes + config: + platform: linux + image_resource: + type: docker-image + source: + repository: (( grab meta.image.name )) + tag: (( grab meta.image.tag )) + inputs: + - { name: git } + run: + path: sh + args: + - -ce + - | + cd git + if [ -f ci/release_notes.md ]; then + echo "###### RELEASE NOTES ###############" + echo + cat ci/release_notes.md + echo + echo "########################################" + echo + else + echo "NO RELEASE NOTES HAVE BEEN WRITTEN" + echo "You *might* want to do that before" + echo "hitting (+) on that shipit job..." + echo + fi - put: version params: {file: version/number} on_failure: