From a95a2c0dfa21bed5613ee0ba7e09a6916eb06b5a Mon Sep 17 00:00:00 2001 From: Gareth Clay Date: Mon, 10 May 2021 18:10:59 +0100 Subject: [PATCH] Use Toolsmiths environments for PR pipeline ATs --- ci/pr-pipeline.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/ci/pr-pipeline.yml b/ci/pr-pipeline.yml index 1bf9c63..339f5c8 100644 --- a/ci/pr-pipeline.yml +++ b/ci/pr-pipeline.yml @@ -33,15 +33,26 @@ jobs: - name: run-acceptance-tests serial: true plan: - - get: pull-request - passed: [build] - trigger: true + - in_parallel: + - get: pull-request + passed: [build] + trigger: true + - put: toolsmith-env + inputs: [ ] + params: + action: claim - task: acceptance-tests file: pull-request/ci/tasks/acceptance-tests.yml input_mapping: git-repo: pull-request on_success: - *slack-success-notification + in_parallel: + - *slack-success-notification + - put: toolsmith-env + params: + action: unclaim + env_file: toolsmith-env/metadata + inputs: [ toolsmith-env ] on_failure: *slack-failure-notification @@ -49,7 +60,7 @@ resource_types: - name: pull-request type: registry-image source: - repository: teliaoss/github-pr-resource + repository: ((dockerhub-mirror-registry))/teliaoss/github-pr-resource - name: slack-notification type: registry-image @@ -57,6 +68,11 @@ resource_types: repository: ((dockerhub-mirror-registry))/cfcommunity/slack-notification-resource tag: latest + - name: pcf-pool + type: registry-image + source: + repository: ((dockerhub-mirror-registry))/cftoolsmiths/toolsmiths-envs-resource + resources: - name: pull-request type: pull-request @@ -71,3 +87,10 @@ resources: source: url: ((scs-slack-webhook)) + - name: toolsmith-env + type: pcf-pool + icon: pool + source: + api_token: ((toolsmith-api-token)) + hostname: environments.toolsmiths.cf-app.com + pool_name: cf-deployment