@jira-deploy/core 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constants/config.js +1 -0
- package/package.json +1 -1
- package/tools/grayrelease.js +11 -0
package/constants/config.js
CHANGED
package/package.json
CHANGED
package/tools/grayrelease.js
CHANGED
|
@@ -256,6 +256,12 @@ export function getGrayReleaseToolDefinitions() {
|
|
|
256
256
|
type: 'string',
|
|
257
257
|
description: 'Jenkins branch(選填,預設 master)',
|
|
258
258
|
},
|
|
259
|
+
fortifyScan: {
|
|
260
|
+
type: 'boolean',
|
|
261
|
+
default: false,
|
|
262
|
+
description:
|
|
263
|
+
'(選填) 是否掃描 Fortify。預設 false;若為 true,會在 GrayRelease 專屬 extraVars 加入 {"fortifyScan":"True"}',
|
|
264
|
+
},
|
|
259
265
|
dryRun: {
|
|
260
266
|
type: 'boolean',
|
|
261
267
|
description: '(選填) 預覽模式,不實際建立 Jira 單,回傳會送出的 payload',
|
|
@@ -512,6 +518,11 @@ export async function handleCreateGrayReleaseTicket(args, { jira, notifier }) {
|
|
|
512
518
|
// gray release notes
|
|
513
519
|
fields[GRAY_RELEASE_FIELD_IDS.grayReleaseNotes] = NOTES_TEMPLATES.grayRelease;
|
|
514
520
|
|
|
521
|
+
// fortify scan (GrayRelease 專屬 extraVars)
|
|
522
|
+
if (normalizedArgs.fortifyScan === true && GRAY_RELEASE_FIELD_IDS.extraVars) {
|
|
523
|
+
fields[GRAY_RELEASE_FIELD_IDS.extraVars] = JSON.stringify({ fortifyScan: 'True' });
|
|
524
|
+
}
|
|
525
|
+
|
|
515
526
|
await assertNoOpenPRBeforeCreate({
|
|
516
527
|
ticketType: 'grayrelease',
|
|
517
528
|
systemCode: normalizedArgs.systemCode,
|