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