Skip to content

Commit

Permalink
Pipeline standardization
Browse files Browse the repository at this point in the history
- Move automatic triggers for final release into individual checks rather than checking at the end
- Clear release notes with empty-file rather than task for golang-release
  • Loading branch information
jpalermo committed Jan 6, 2025
1 parent 29a44c1 commit fa2acb2
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,14 @@ jobs:
input_repo: bosh-dns-release
params:
PACKAGES: [ golang-1-linux, golang-1-windows ]
on_success:
do:
- put: release-notes
params:
file: release-notes/release-notes.md
- put: version
params:
bump: patch
- try:
task: check-for-patched-cves
file: bosh-shared-ci/tasks/release/check-for-patched-cves.yml
Expand All @@ -429,6 +437,14 @@ jobs:
params:
SEVERITY: CRITICAL,HIGH
SOURCE_PATH: src/bosh-dns
on_success:
do:
- put: release-notes
params:
file: release-notes/release-notes.md
- put: version
params:
bump: patch
- task: ensure-package-check-succeeded
file: bosh-shared-ci/tasks/release/ensure-task-succeeded.yml
image: bosh-security-scanner-image
Expand All @@ -439,34 +455,6 @@ jobs:
image: bosh-security-scanner-image
input_mapping:
task-output-folder: patched_cves
- try:
task: check-needs-release
image: bosh-security-scanner-image
config:
platform: linux
inputs:
- name: release-notes
run:
path: /bin/bash
args:
- -c
- |
if [ -f release-notes/needs-release ]; then
echo "## Release Notes"
echo "${release-notes/release-notes.md}"
exit 0
else
echo "No release needed"
exit 1
fi
on_success:
do:
- put: release-notes
params:
file: release-notes/release-notes.md
- put: version
params:
bump: patch

- name: finalize-release
serial_groups:
Expand All @@ -478,7 +466,6 @@ jobs:
- get: version
trigger: true
- get: release-notes
- get: golang-release
- get: bosh-shared-ci
- task: finalize-release
file: bosh-shared-ci/tasks/release/create-final-release.yml
Expand All @@ -504,11 +491,11 @@ jobs:
name: release_metadata/tag-name
tag: release_metadata/tag-name
body: release-notes/release-notes.md
- task: clear-release-notes
file: golang-release/ci/tasks/shared/clear-release-notes.yml
commitish: bosh-dns-release/.git/ref
generate_release_notes: true
- put: release-notes
params:
file: release-notes/release-notes.md
file: release_repo/empty-file

- name: delivery
plan:
Expand Down

0 comments on commit fa2acb2

Please sign in to comment.