From 4d9014439d1609df939cee1ace9fbf80605b17dd Mon Sep 17 00:00:00 2001 From: Benjamin Gandon Date: Wed, 4 Dec 2024 20:19:45 +0100 Subject: [PATCH] Use the 'test' job on the 'develop' branch only --- ci/release_notes.md | 3 +++ ci/settings.yml | 28 +++++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 ci/release_notes.md diff --git a/ci/release_notes.md b/ci/release_notes.md new file mode 100644 index 0000000..a5b2ac4 --- /dev/null +++ b/ci/release_notes.md @@ -0,0 +1,3 @@ +### Improvements + +- What's up, doc? diff --git a/ci/settings.yml b/ci/settings.yml index 8ac5ab6..b8f3934 100644 --- a/ci/settings.yml +++ b/ci/settings.yml @@ -40,6 +40,7 @@ meta: github: owner: cloudfoundry-community repo: slack-notification-resource + # branch: master pr_base_branch: develop private_key: ((github-private-key)) access_token: ((github-access-token)) @@ -54,7 +55,7 @@ groups: - name: (( grab meta.name )) jobs: - (( append )) - - test + - test-develop jobs: - name: build @@ -89,13 +90,13 @@ jobs: params: IMAGE_ARG_alpine: alpine-latest/image.tar - - name: test + - name: test-develop public: true serial: true plan: - in_parallel: - { get: edge, passed: [ build ], trigger: true } - - { get: git, passed: [ build ], trigger: true } + - { get: git, resource: develop, trigger: true } - task: test-image image: edge config: @@ -107,10 +108,10 @@ jobs: args: - -c - | - set -ueo pipefail -x - bash --version | head -n 1 + set -ueo pipefail -x + rm -f /opt/resource/{check,in,out} git/test/all.sh on_failure: @@ -122,14 +123,6 @@ jobs: icon_url: (( grab meta.slack.icon )) text: (( grab meta.slack.fail_text )) - - name: rc - plan: - - (( inline )) - - in_parallel: - - (( merge on get )) - - { get: edge, passed: [ (( replace )), test ] } - - { get: git, passed: [ (( replace )), test ] } - - name: promote plan: - (( insert after 1 )) # insert after “task: release” @@ -163,6 +156,15 @@ jobs: resources: + - name: develop + type: git + icon: github + source: + uri: (( grab meta.github.uri )) + branch: (( grab meta.github.pr_base_branch )) + private_key: (( grab meta.github.private_key )) + webhook_token: ((gk-concourse-webhook-token)) + - name: git check_every: 24h webhook_token: ((gk-concourse-webhook-token))