Skip to content

Commit 88a6ed5

Browse files
spikymonkeyroyclarkson
authored andcommitted
Use Toolsmiths environments for PR pipeline ATs
1 parent a329ccf commit 88a6ed5

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

ci/pr-pipeline.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,46 @@ jobs:
3333
- name: run-acceptance-tests
3434
serial: true
3535
plan:
36-
- get: pull-request
37-
passed: [build]
38-
trigger: true
36+
- in_parallel:
37+
- get: pull-request
38+
passed: [build]
39+
trigger: true
40+
- put: toolsmith-env
41+
inputs: [ ]
42+
params:
43+
action: claim
3944
- task: acceptance-tests
4045
file: pull-request/ci/tasks/acceptance-tests.yml
4146
input_mapping:
4247
git-repo: pull-request
4348
on_success:
44-
*slack-success-notification
49+
in_parallel:
50+
- *slack-success-notification
51+
- put: toolsmith-env
52+
params:
53+
action: unclaim
54+
env_file: toolsmith-env/metadata
55+
inputs: [ toolsmith-env ]
4556
on_failure:
4657
*slack-failure-notification
4758

4859
resource_types:
4960
- name: pull-request
5061
type: registry-image
5162
source:
52-
repository: teliaoss/github-pr-resource
63+
repository: ((dockerhub-mirror-registry))/teliaoss/github-pr-resource
5364

5465
- name: slack-notification
5566
type: registry-image
5667
source:
5768
repository: ((dockerhub-mirror-registry))/cfcommunity/slack-notification-resource
5869
tag: latest
5970

71+
- name: pcf-pool
72+
type: registry-image
73+
source:
74+
repository: ((dockerhub-mirror-registry))/cftoolsmiths/toolsmiths-envs-resource
75+
6076
resources:
6177
- name: pull-request
6278
type: pull-request
@@ -71,3 +87,10 @@ resources:
7187
source:
7288
url: ((scs-slack-webhook))
7389

90+
- name: toolsmith-env
91+
type: pcf-pool
92+
icon: pool
93+
source:
94+
api_token: ((toolsmith-api-token))
95+
hostname: environments.toolsmiths.cf-app.com
96+
pool_name: cf-deployment

0 commit comments

Comments
 (0)