Skip to content

Commit 9c7bed4

Browse files
authored
Merge pull request #59 from att55/add_node_label
feat: Select specific node by configuring node label
2 parents 211adc8 + f2bd185 commit 9c7bed4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const ANNOTATIONS = [
1515
'screwdriver.cd/repoManifest',
1616
'screwdriver.cd/dockerEnabled',
1717
'screwdriver.cd/dockerCpu',
18-
'screwdriver.cd/dockerRam'
18+
'screwdriver.cd/dockerRam',
19+
'screwdriver.cd/nodeLabel'
1920
];
2021
const annotationRe = /screwdriver.cd\/(\w+)/;
2122

test/index.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,15 @@ describe('index test', () => {
161161
'beta.screwdriver.cd/cpu': 'HIGH',
162162
'beta.screwdriver.cd/ram': 'LOW',
163163
'screwdriver.cd/disk': 'HIGH',
164+
'screwdriver.cd/nodeLabel': 'foo-label',
164165
'invald.screwdriver.cd': 'invalid'
165166
});
166167

167168
assert.deepEqual(parsed, {
168169
cpu: 'HIGH',
169170
ram: 'LOW',
170-
disk: 'HIGH'
171+
disk: 'HIGH',
172+
nodeLabel: 'foo-label'
171173
});
172174
});
173175

0 commit comments

Comments
 (0)