-
Notifications
You must be signed in to change notification settings - Fork 6
/
screwdriver.yaml
63 lines (62 loc) · 2.62 KB
/
screwdriver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#shared:
# image: node:6
#jobs:
# # the main job is run in pull requests as well
# main:
# steps:
# - install: npm install screwdriver-template-main
# - validate: ./node_modules/.bin/template-validate
# - publish: ./node_modules/.bin/template-publish
# tag:
# steps:
# - install: npm install screwdriver-template-main
# - token: echo $SD_TOKEN
# - tag: ./node_modules/.bin/template-tag --name tifftemplate --version 1.0.4 --tag latest
# use-tag:
# template: tifftemplate@latest
---
jobs:
main:
description: 'hello I am the first job that will run'
requires: [~pr, ~commit]
image: node:8
steps:
- echo: |
cat $SD_SOURCE_DIR/ascii-art.txt
- meta: |
meta set meta.status.coverage '{"status":"SUCCESS","message":"Coverage is above 80%."}'
meta set meta.status.lowercase2 '{"status":"success","message":"Coverage is above 80%."}'
meta set meta.status.pendingTest '{"status":"PENDING","message":"Still working on it."}'
meta set meta.status.lowercase3 '{"status":"pending","message":"Still working on it."}'
- sleep: sleep 1m
- cat: cp -a /sd/meta/. $SD_ARTIFACTS_DIR/meta/
internal_fork1:
description: 'this is the production deploy job but really it just gets the external meta'
requires: [main]
image: node:8
steps:
- echo: meta set meta.package.version "3206-internal"
- overwrite: meta set sd.3983.external_fork1 ""
- cat: cp -a /sd/meta/. $SD_ARTIFACTS_DIR/meta/
- sleep: sleep 1m
internal_fork2:
description: 'this is the production deploy job but really it just gets the external meta'
requires: [main]
image: node:8
steps:
- echo: echo hi
- cat: cp -a /sd/meta/. $SD_ARTIFACTS_DIR/meta/
join_job:
description: 'job to test the specific branch requires feature'
requires: ['internal_fork1', 'internal_fork2', 'sd@3983:external_fork1', 'sd@3983:external_fork2']
image: node:8
steps:
- echo: meta get meta.package.version
#- echoExternal: meta get meta.package.version --external sd@3983:external_fork1
- cat: cp -a /sd/meta/. $SD_ARTIFACTS_DIR/meta/
join_downstream:
requires: ['join_job']
image: node:8
steps:
- echoExternal: meta get meta.package.version --external sd@3983:external_fork1
- cat: cp -a /sd/meta/. $SD_ARTIFACTS_DIR/meta/