Skip to content

Commit bba3461

Browse files
priyank-pjoyeecheung
authored andcommitted
ci-parser: add new node-test-pull-request-lite-pipeline (#265)
1 parent f8e2a17 commit bba3461

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

lib/ci/ci_type_parser.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const NOINTL = 'NOINTL';
1616
const V8 = 'V8';
1717
const LINTER = 'LINTER';
1818
const LITE_PR = 'LITE_PR';
19+
const LITE_PR_PIPELINE = 'LITE_PR_PIPELINE';
1920
const LITE_COMMIT = 'LITE_COMMIT';
2021

2122
const CI_TYPE_ENUM = {
@@ -81,6 +82,12 @@ const CI_TYPES = new Map([
8182
pattern: /job\/node-test-pull-request-lite\/(\d+)/,
8283
type: JOB_CI | LITE_CI
8384
}],
85+
[LITE_PR_PIPELINE, {
86+
name: 'Lite PR Pipeline',
87+
jobName: 'node-test-pull-request-lite-pipeline',
88+
pattern: /job\/node-test-pull-request-lite-pipeline\/(\d+)\/pipeline/,
89+
type: LITE_CI
90+
}],
8491
[LITE_COMMIT, {
8592
name: 'Lite Commit',
8693
jobName: 'node-test-commit-lite',

test/fixtures/comments_with_ci.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
},{
2626
"publishedAt": "2018-02-09T21:38:30Z",
2727
"bodyText": "CI https://ci.nodejs.org/job/node-test-commit-lite/246/"
28+
},{
29+
"publishedAt": "2017-10-21T04:16:36.458Z",
30+
"bodyText": "@contributer build started: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/7213/pipeline/"
2831
}
2932
]

test/unit/ci_type_parser.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ const expected = new Map([
4949
link: 'https://ci.nodejs.org/job/node-test-commit-lite/246/',
5050
date: '2018-02-09T21:38:30Z',
5151
jobid: 246
52+
}],
53+
['LITE_PR_PIPELINE', {
54+
link: 'https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/7213/pipeline/',
55+
date: '2017-10-21T04:16:36.458Z',
56+
jobid: 7213
5257
}]
5358
]);
5459

test/unit/pr_checker.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ describe('PRChecker', () => {
457457
[
458458
'Last Lite Commit CI on 2018-02-09T21:38:30Z: ' +
459459
'https://ci.nodejs.org/job/node-test-commit-lite/246/'
460+
],
461+
[
462+
'Last Lite PR Pipeline CI on 2017-10-21T04:16:36.458Z: ' +
463+
'https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/7213/pipeline/'
460464
]
461465
]
462466
};

0 commit comments

Comments
 (0)