@simplysf/simply-cicd 0.15.2 → 0.17.0
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/README.md +127 -38
- package/lib/commands/simply/cicd/build/lwc-jest.d.ts +2 -1
- package/lib/commands/simply/cicd/build/lwc-jest.js +8 -3
- package/lib/commands/simply/cicd/build/lwc-jest.js.map +1 -1
- package/lib/commands/simply/cicd/notify/build.d.ts +28 -0
- package/lib/commands/simply/cicd/notify/build.js +136 -0
- package/lib/commands/simply/cicd/notify/build.js.map +1 -0
- package/lib/common/build/lwcJest.d.ts +17 -1
- package/lib/common/build/lwcJest.js +98 -8
- package/lib/common/build/lwcJest.js.map +1 -1
- package/lib/common/notify/buildNotification.d.ts +53 -0
- package/lib/common/notify/buildNotification.js +176 -0
- package/lib/common/notify/buildNotification.js.map +1 -0
- package/lib/common/notify/templates.d.ts +2 -0
- package/lib/common/notify/templates.js +21 -0
- package/lib/common/notify/templates.js.map +1 -1
- package/messages/simply.cicd.build.lwc-jest.md +9 -1
- package/messages/simply.cicd.notify.build.md +83 -0
- package/messages/simply.cicd.notify.teams.md +1 -1
- package/oclif.manifest.json +1499 -1306
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -277,13 +277,12 @@
|
|
|
277
277
|
"validate:deploy:cicd:simply"
|
|
278
278
|
]
|
|
279
279
|
},
|
|
280
|
-
"simply:cicd:
|
|
280
|
+
"simply:cicd:build:cleanup-scratch-orgs": {
|
|
281
281
|
"aliases": [],
|
|
282
282
|
"args": {},
|
|
283
|
-
"description": "
|
|
283
|
+
"description": "For each Dev Hub, queries `ActiveScratchOrg` records created more than 3 hours ago and bulk-deletes them. Useful for keeping a shared Dev Hub's scratch org allotment from being exhausted by abandoned CI runs. Every `--dev-hub` alias must already be authenticated.",
|
|
284
284
|
"examples": [
|
|
285
|
-
"<%= config.bin %> <%= command.id %> --
|
|
286
|
-
"<%= config.bin %> <%= command.id %> --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
285
|
+
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
287
286
|
],
|
|
288
287
|
"flags": {
|
|
289
288
|
"json": {
|
|
@@ -301,62 +300,103 @@
|
|
|
301
300
|
"multiple": false,
|
|
302
301
|
"type": "option"
|
|
303
302
|
},
|
|
304
|
-
"
|
|
305
|
-
"name": "
|
|
306
|
-
"
|
|
303
|
+
"dev-hub": {
|
|
304
|
+
"name": "dev-hub",
|
|
305
|
+
"required": true,
|
|
306
|
+
"summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
|
|
307
|
+
"hasDynamicHelp": false,
|
|
308
|
+
"multiple": true,
|
|
309
|
+
"type": "option"
|
|
310
|
+
},
|
|
311
|
+
"debug": {
|
|
312
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
313
|
+
"name": "debug",
|
|
314
|
+
"summary": "Enable verbose debug logging.",
|
|
307
315
|
"allowNo": false,
|
|
308
316
|
"type": "boolean"
|
|
309
317
|
},
|
|
310
|
-
"
|
|
311
|
-
"
|
|
312
|
-
"
|
|
318
|
+
"disabled": {
|
|
319
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
320
|
+
"name": "disabled",
|
|
321
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
322
|
+
"allowNo": false,
|
|
323
|
+
"type": "boolean"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"hasDynamicHelp": false,
|
|
327
|
+
"hiddenAliases": [],
|
|
328
|
+
"id": "simply:cicd:build:cleanup-scratch-orgs",
|
|
329
|
+
"pluginAlias": "@simplysf/simply-cicd",
|
|
330
|
+
"pluginName": "@simplysf/simply-cicd",
|
|
331
|
+
"pluginType": "core",
|
|
332
|
+
"strict": true,
|
|
333
|
+
"summary": "Delete scratch orgs older than 3 hours from every configured Dev Hub.",
|
|
334
|
+
"enableJsonFlag": true,
|
|
335
|
+
"isESM": true,
|
|
336
|
+
"relativePath": [
|
|
337
|
+
"lib",
|
|
338
|
+
"commands",
|
|
339
|
+
"simply",
|
|
340
|
+
"cicd",
|
|
341
|
+
"build",
|
|
342
|
+
"cleanup-scratch-orgs.js"
|
|
343
|
+
],
|
|
344
|
+
"aliasPermutations": [],
|
|
345
|
+
"permutations": [
|
|
346
|
+
"simply:cicd:build:cleanup-scratch-orgs",
|
|
347
|
+
"cicd:simply:build:cleanup-scratch-orgs",
|
|
348
|
+
"cicd:build:simply:cleanup-scratch-orgs",
|
|
349
|
+
"cicd:build:cleanup-scratch-orgs:simply",
|
|
350
|
+
"simply:build:cicd:cleanup-scratch-orgs",
|
|
351
|
+
"build:simply:cicd:cleanup-scratch-orgs",
|
|
352
|
+
"build:cicd:simply:cleanup-scratch-orgs",
|
|
353
|
+
"build:cicd:cleanup-scratch-orgs:simply",
|
|
354
|
+
"simply:build:cleanup-scratch-orgs:cicd",
|
|
355
|
+
"build:simply:cleanup-scratch-orgs:cicd",
|
|
356
|
+
"build:cleanup-scratch-orgs:simply:cicd",
|
|
357
|
+
"build:cleanup-scratch-orgs:cicd:simply",
|
|
358
|
+
"simply:cicd:cleanup-scratch-orgs:build",
|
|
359
|
+
"cicd:simply:cleanup-scratch-orgs:build",
|
|
360
|
+
"cicd:cleanup-scratch-orgs:simply:build",
|
|
361
|
+
"cicd:cleanup-scratch-orgs:build:simply",
|
|
362
|
+
"simply:cleanup-scratch-orgs:cicd:build",
|
|
363
|
+
"cleanup-scratch-orgs:simply:cicd:build",
|
|
364
|
+
"cleanup-scratch-orgs:cicd:simply:build",
|
|
365
|
+
"cleanup-scratch-orgs:cicd:build:simply",
|
|
366
|
+
"simply:cleanup-scratch-orgs:build:cicd",
|
|
367
|
+
"cleanup-scratch-orgs:simply:build:cicd",
|
|
368
|
+
"cleanup-scratch-orgs:build:simply:cicd",
|
|
369
|
+
"cleanup-scratch-orgs:build:cicd:simply"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"simply:cicd:build:create-fallback-tag": {
|
|
373
|
+
"aliases": [],
|
|
374
|
+
"args": {},
|
|
375
|
+
"description": "Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric suffix (e.g. `v1.2.3.4` -> `v1.2.3.4-1` -> `v1.2.3.4-2`) annotated with that same package ID. Tags are matched and parsed in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, so only a counter after the formatted version is incremented — with `v{MAJOR}.{MINOR}.{PATCH}-{BUILD}`, `v1.2.3-4` becomes `v1.2.3-4-1`, never `v1.2.3-5`. Soft no-ops (does not error) when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has nothing to do here.\n\nAlso soft no-ops when HEAD already carries a tag matching the version prefix, e.g. because `build create-package-version` just created and tagged a real package version earlier in the same job. This also keeps a retried job from adding a second fallback tag to the same commit.\n\nSkipped automatically when `PACKAGE_CHANGED=TRUE` is set in the environment (see `build determine-package-changes`) — a real package version will be created instead.",
|
|
376
|
+
"examples": [
|
|
377
|
+
"<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123"
|
|
378
|
+
],
|
|
379
|
+
"flags": {
|
|
380
|
+
"json": {
|
|
381
|
+
"description": "Format output as json.",
|
|
382
|
+
"helpGroup": "GLOBAL",
|
|
383
|
+
"name": "json",
|
|
313
384
|
"allowNo": false,
|
|
314
385
|
"type": "boolean"
|
|
315
386
|
},
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"name": "
|
|
319
|
-
"summary": "
|
|
320
|
-
"hasDynamicHelp": false,
|
|
321
|
-
"multiple": false,
|
|
322
|
-
"type": "option"
|
|
323
|
-
},
|
|
324
|
-
"ci-environment-name": {
|
|
325
|
-
"env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
|
|
326
|
-
"name": "ci-environment-name",
|
|
327
|
-
"summary": "The name of the target CI environment.",
|
|
328
|
-
"hasDynamicHelp": false,
|
|
329
|
-
"multiple": false,
|
|
330
|
-
"type": "option"
|
|
331
|
-
},
|
|
332
|
-
"ci-job-name": {
|
|
333
|
-
"env": "SIMPLY_CICD_CI_JOB_NAME",
|
|
334
|
-
"name": "ci-job-name",
|
|
335
|
-
"summary": "The name of the current CI job.",
|
|
336
|
-
"hasDynamicHelp": false,
|
|
337
|
-
"multiple": false,
|
|
338
|
-
"type": "option"
|
|
339
|
-
},
|
|
340
|
-
"ci-job-stage": {
|
|
341
|
-
"env": "SIMPLY_CICD_CI_JOB_STAGE",
|
|
342
|
-
"name": "ci-job-stage",
|
|
343
|
-
"summary": "The stage of the current CI job.",
|
|
344
|
-
"hasDynamicHelp": false,
|
|
345
|
-
"multiple": false,
|
|
346
|
-
"type": "option"
|
|
347
|
-
},
|
|
348
|
-
"ci-job-status": {
|
|
349
|
-
"env": "SIMPLY_CICD_CI_JOB_STATUS",
|
|
350
|
-
"name": "ci-job-status",
|
|
351
|
-
"summary": "The status of the current CI job (e.g. success, failed).",
|
|
387
|
+
"flags-dir": {
|
|
388
|
+
"helpGroup": "GLOBAL",
|
|
389
|
+
"name": "flags-dir",
|
|
390
|
+
"summary": "Import flag values from a directory.",
|
|
352
391
|
"hasDynamicHelp": false,
|
|
353
392
|
"multiple": false,
|
|
354
393
|
"type": "option"
|
|
355
394
|
},
|
|
356
|
-
"ci-
|
|
357
|
-
"env": "
|
|
358
|
-
"name": "ci-
|
|
359
|
-
"
|
|
395
|
+
"ci-commit-ref-name": {
|
|
396
|
+
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
397
|
+
"name": "ci-commit-ref-name",
|
|
398
|
+
"required": true,
|
|
399
|
+
"summary": "Git branch or ref name being built.",
|
|
360
400
|
"hasDynamicHelp": false,
|
|
361
401
|
"multiple": false,
|
|
362
402
|
"type": "option"
|
|
@@ -364,107 +404,89 @@
|
|
|
364
404
|
"ci-pipeline-id": {
|
|
365
405
|
"env": "SIMPLY_CICD_CI_PIPELINE_ID",
|
|
366
406
|
"name": "ci-pipeline-id",
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"multiple": false,
|
|
370
|
-
"type": "option"
|
|
371
|
-
},
|
|
372
|
-
"ci-pipeline-url": {
|
|
373
|
-
"env": "SIMPLY_CICD_CI_PIPELINE_URL",
|
|
374
|
-
"name": "ci-pipeline-url",
|
|
375
|
-
"summary": "The URL of the current CI pipeline.",
|
|
407
|
+
"required": true,
|
|
408
|
+
"summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
|
|
376
409
|
"hasDynamicHelp": false,
|
|
377
410
|
"multiple": false,
|
|
378
411
|
"type": "option"
|
|
379
412
|
},
|
|
380
|
-
"
|
|
381
|
-
"env": "
|
|
382
|
-
"name": "
|
|
383
|
-
"
|
|
384
|
-
"
|
|
413
|
+
"ci-project-path": {
|
|
414
|
+
"env": "SIMPLY_CICD_CI_PROJECT_PATH",
|
|
415
|
+
"name": "ci-project-path",
|
|
416
|
+
"required": true,
|
|
417
|
+
"summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
|
|
385
418
|
"hasDynamicHelp": false,
|
|
386
419
|
"multiple": false,
|
|
387
420
|
"type": "option"
|
|
388
421
|
},
|
|
389
|
-
"
|
|
390
|
-
"env": "
|
|
391
|
-
"name": "
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"type": "boolean"
|
|
395
|
-
},
|
|
396
|
-
"alm-base-url": {
|
|
397
|
-
"env": "SIMPLY_CICD_ALM_BASE_URL",
|
|
398
|
-
"name": "alm-base-url",
|
|
399
|
-
"summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
|
|
422
|
+
"project-access-token": {
|
|
423
|
+
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
424
|
+
"name": "project-access-token",
|
|
425
|
+
"required": true,
|
|
426
|
+
"summary": "Access token used to authenticate git remote operations (tagging, pushing).",
|
|
400
427
|
"hasDynamicHelp": false,
|
|
401
428
|
"multiple": false,
|
|
402
429
|
"type": "option"
|
|
403
430
|
},
|
|
404
|
-
"
|
|
405
|
-
"env": "
|
|
406
|
-
"name": "
|
|
407
|
-
"summary": "
|
|
431
|
+
"vcs-host": {
|
|
432
|
+
"env": "SIMPLY_CICD_VCS_HOST",
|
|
433
|
+
"name": "vcs-host",
|
|
434
|
+
"summary": "Hostname of the VCS instance hosting this project.",
|
|
408
435
|
"hasDynamicHelp": false,
|
|
409
436
|
"multiple": false,
|
|
410
437
|
"type": "option"
|
|
411
438
|
},
|
|
412
|
-
"
|
|
413
|
-
"env": "
|
|
414
|
-
"name": "
|
|
415
|
-
"summary": "The
|
|
416
|
-
"default": "
|
|
439
|
+
"vcs-provider": {
|
|
440
|
+
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
441
|
+
"name": "vcs-provider",
|
|
442
|
+
"summary": "The VCS platform hosting this project.",
|
|
443
|
+
"default": "gitlab",
|
|
417
444
|
"hasDynamicHelp": false,
|
|
418
445
|
"multiple": false,
|
|
419
446
|
"options": [
|
|
420
|
-
"
|
|
421
|
-
"
|
|
447
|
+
"github",
|
|
448
|
+
"gitlab"
|
|
422
449
|
],
|
|
423
450
|
"type": "option"
|
|
424
451
|
},
|
|
425
|
-
"project-access-token": {
|
|
426
|
-
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
427
|
-
"name": "project-access-token",
|
|
428
|
-
"summary": "A personal or project access token, used to look up an upgraded package's origin commit history when --ci-job-token isn't provided or can't read that repository.",
|
|
429
|
-
"hasDynamicHelp": false,
|
|
430
|
-
"multiple": false,
|
|
431
|
-
"type": "option"
|
|
432
|
-
},
|
|
433
|
-
"teams-webhook-url": {
|
|
434
|
-
"name": "teams-webhook-url",
|
|
435
|
-
"summary": "One or more Teams webhook URLs to send the notification to.",
|
|
436
|
-
"hasDynamicHelp": false,
|
|
437
|
-
"multiple": true,
|
|
438
|
-
"type": "option"
|
|
439
|
-
},
|
|
440
|
-
"notify-on-completion": {
|
|
441
|
-
"name": "notify-on-completion",
|
|
442
|
-
"summary": "Only send a notification on the final job of the pipeline, suppressing per-stage notifications.",
|
|
443
|
-
"allowNo": false,
|
|
444
|
-
"type": "boolean"
|
|
445
|
-
},
|
|
446
|
-
"is-final-job": {
|
|
447
|
-
"name": "is-final-job",
|
|
448
|
-
"summary": "Marks this job as the final job in the pipeline. Combined with --after-script and --notify-on-completion, this is what actually triggers the final notification.",
|
|
449
|
-
"allowNo": false,
|
|
450
|
-
"type": "boolean"
|
|
451
|
-
},
|
|
452
452
|
"debug": {
|
|
453
453
|
"env": "SIMPLY_CICD_DEBUG",
|
|
454
454
|
"name": "debug",
|
|
455
455
|
"summary": "Enable verbose debug logging.",
|
|
456
456
|
"allowNo": false,
|
|
457
457
|
"type": "boolean"
|
|
458
|
+
},
|
|
459
|
+
"disabled": {
|
|
460
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
461
|
+
"name": "disabled",
|
|
462
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
463
|
+
"allowNo": false,
|
|
464
|
+
"type": "boolean"
|
|
465
|
+
},
|
|
466
|
+
"last-tag": {
|
|
467
|
+
"name": "last-tag",
|
|
468
|
+
"summary": "Manually specify the last tag to increment, instead of resolving it from git.",
|
|
469
|
+
"hasDynamicHelp": false,
|
|
470
|
+
"multiple": false,
|
|
471
|
+
"type": "option"
|
|
472
|
+
},
|
|
473
|
+
"out": {
|
|
474
|
+
"name": "out",
|
|
475
|
+
"summary": "Output dotenv file path.",
|
|
476
|
+
"default": "subscriberPackageVersionId.env",
|
|
477
|
+
"hasDynamicHelp": false,
|
|
478
|
+
"multiple": false,
|
|
479
|
+
"type": "option"
|
|
458
480
|
}
|
|
459
481
|
},
|
|
460
482
|
"hasDynamicHelp": false,
|
|
461
483
|
"hiddenAliases": [],
|
|
462
|
-
"id": "simply:cicd:
|
|
484
|
+
"id": "simply:cicd:build:create-fallback-tag",
|
|
463
485
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
464
486
|
"pluginName": "@simplysf/simply-cicd",
|
|
465
487
|
"pluginType": "core",
|
|
466
488
|
"strict": true,
|
|
467
|
-
"summary": "
|
|
489
|
+
"summary": "Create a fallback git tag carrying forward the previous package version's ID, for builds that didn't produce a new package version.",
|
|
468
490
|
"enableJsonFlag": true,
|
|
469
491
|
"isESM": true,
|
|
470
492
|
"relativePath": [
|
|
@@ -472,44 +494,43 @@
|
|
|
472
494
|
"commands",
|
|
473
495
|
"simply",
|
|
474
496
|
"cicd",
|
|
475
|
-
"
|
|
476
|
-
"
|
|
497
|
+
"build",
|
|
498
|
+
"create-fallback-tag.js"
|
|
477
499
|
],
|
|
478
500
|
"aliasPermutations": [],
|
|
479
501
|
"permutations": [
|
|
480
|
-
"simply:cicd:
|
|
481
|
-
"cicd:simply:
|
|
482
|
-
"cicd:
|
|
483
|
-
"cicd:
|
|
484
|
-
"simply:
|
|
485
|
-
"
|
|
486
|
-
"
|
|
487
|
-
"
|
|
488
|
-
"simply:
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"simply:cicd:
|
|
493
|
-
"cicd:simply:
|
|
494
|
-
"cicd:
|
|
495
|
-
"cicd:
|
|
496
|
-
"simply:
|
|
497
|
-
"
|
|
498
|
-
"
|
|
499
|
-
"
|
|
500
|
-
"simply:
|
|
501
|
-
"
|
|
502
|
-
"
|
|
503
|
-
"
|
|
502
|
+
"simply:cicd:build:create-fallback-tag",
|
|
503
|
+
"cicd:simply:build:create-fallback-tag",
|
|
504
|
+
"cicd:build:simply:create-fallback-tag",
|
|
505
|
+
"cicd:build:create-fallback-tag:simply",
|
|
506
|
+
"simply:build:cicd:create-fallback-tag",
|
|
507
|
+
"build:simply:cicd:create-fallback-tag",
|
|
508
|
+
"build:cicd:simply:create-fallback-tag",
|
|
509
|
+
"build:cicd:create-fallback-tag:simply",
|
|
510
|
+
"simply:build:create-fallback-tag:cicd",
|
|
511
|
+
"build:simply:create-fallback-tag:cicd",
|
|
512
|
+
"build:create-fallback-tag:simply:cicd",
|
|
513
|
+
"build:create-fallback-tag:cicd:simply",
|
|
514
|
+
"simply:cicd:create-fallback-tag:build",
|
|
515
|
+
"cicd:simply:create-fallback-tag:build",
|
|
516
|
+
"cicd:create-fallback-tag:simply:build",
|
|
517
|
+
"cicd:create-fallback-tag:build:simply",
|
|
518
|
+
"simply:create-fallback-tag:cicd:build",
|
|
519
|
+
"create-fallback-tag:simply:cicd:build",
|
|
520
|
+
"create-fallback-tag:cicd:simply:build",
|
|
521
|
+
"create-fallback-tag:cicd:build:simply",
|
|
522
|
+
"simply:create-fallback-tag:build:cicd",
|
|
523
|
+
"create-fallback-tag:simply:build:cicd",
|
|
524
|
+
"create-fallback-tag:build:simply:cicd",
|
|
525
|
+
"create-fallback-tag:build:cicd:simply"
|
|
504
526
|
]
|
|
505
527
|
},
|
|
506
|
-
"simply:cicd:
|
|
528
|
+
"simply:cicd:build:create-package-version": {
|
|
507
529
|
"aliases": [],
|
|
508
530
|
"args": {},
|
|
509
|
-
"description": "
|
|
531
|
+
"description": "Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's package, polls until creation finishes, verifies the resulting version's Apex code coverage meets `--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.\n\nThe tag is `v<major>.<minor>.<patch>.<build>` by default. A project can choose its own shape with a `plugins.simply.versionTagFormat` template in `sfdx-project.json`, or the `SIMPLY_CICD_VERSION_TAG_FORMAT` environment variable (which overrides it) — e.g. `{MAJOR}.{MINOR}.{PATCH}+{BUILD}` tags `1.2.3.4` as `1.2.3+4`. Each of `{MAJOR}`, `{MINOR}`, `{PATCH}`, and `{BUILD}` must appear exactly once, and the format is validated before any package version is created. Unless this is a release-branch build, the package directory's `branch` attribute or the CI ref is appended as `-<suffix>` after the formatted version.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
510
532
|
"examples": [
|
|
511
|
-
"<%= config.bin %> <%= command.id %> --
|
|
512
|
-
"<%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
533
|
+
"<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --packaging-devhub my-packaging-devhub"
|
|
513
534
|
],
|
|
514
535
|
"flags": {
|
|
515
536
|
"json": {
|
|
@@ -527,178 +548,142 @@
|
|
|
527
548
|
"multiple": false,
|
|
528
549
|
"type": "option"
|
|
529
550
|
},
|
|
530
|
-
"after-script": {
|
|
531
|
-
"name": "after-script",
|
|
532
|
-
"summary": "Run the after-deployment notification logic.",
|
|
533
|
-
"allowNo": false,
|
|
534
|
-
"type": "boolean"
|
|
535
|
-
},
|
|
536
|
-
"alias": {
|
|
537
|
-
"env": "SIMPLY_CICD_ALIAS",
|
|
538
|
-
"name": "alias",
|
|
539
|
-
"summary": "Alias of the target Salesforce org to query for the previously installed package version. Must already be authenticated.",
|
|
540
|
-
"hasDynamicHelp": false,
|
|
541
|
-
"multiple": false,
|
|
542
|
-
"type": "option"
|
|
543
|
-
},
|
|
544
|
-
"before-script": {
|
|
545
|
-
"name": "before-script",
|
|
546
|
-
"summary": "Run the before-deployment setup logic (resolves and records package versions).",
|
|
547
|
-
"allowNo": false,
|
|
548
|
-
"type": "boolean"
|
|
549
|
-
},
|
|
550
551
|
"ci-commit-ref-name": {
|
|
551
552
|
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
552
553
|
"name": "ci-commit-ref-name",
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"multiple": false,
|
|
556
|
-
"type": "option"
|
|
557
|
-
},
|
|
558
|
-
"ci-environment-name": {
|
|
559
|
-
"env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
|
|
560
|
-
"name": "ci-environment-name",
|
|
561
|
-
"summary": "The name of the target CI environment.",
|
|
562
|
-
"hasDynamicHelp": false,
|
|
563
|
-
"multiple": false,
|
|
564
|
-
"type": "option"
|
|
565
|
-
},
|
|
566
|
-
"ci-job-name": {
|
|
567
|
-
"env": "SIMPLY_CICD_CI_JOB_NAME",
|
|
568
|
-
"name": "ci-job-name",
|
|
569
|
-
"summary": "The name of the current CI job.",
|
|
554
|
+
"required": true,
|
|
555
|
+
"summary": "Git branch or ref name being built.",
|
|
570
556
|
"hasDynamicHelp": false,
|
|
571
557
|
"multiple": false,
|
|
572
558
|
"type": "option"
|
|
573
559
|
},
|
|
574
|
-
"ci-
|
|
575
|
-
"env": "
|
|
576
|
-
"name": "ci-
|
|
577
|
-
"
|
|
560
|
+
"ci-pipeline-id": {
|
|
561
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_ID",
|
|
562
|
+
"name": "ci-pipeline-id",
|
|
563
|
+
"required": true,
|
|
564
|
+
"summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
|
|
578
565
|
"hasDynamicHelp": false,
|
|
579
566
|
"multiple": false,
|
|
580
567
|
"type": "option"
|
|
581
568
|
},
|
|
582
|
-
"ci-
|
|
583
|
-
"env": "
|
|
584
|
-
"name": "ci-
|
|
585
|
-
"
|
|
569
|
+
"ci-project-path": {
|
|
570
|
+
"env": "SIMPLY_CICD_CI_PROJECT_PATH",
|
|
571
|
+
"name": "ci-project-path",
|
|
572
|
+
"required": true,
|
|
573
|
+
"summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
|
|
586
574
|
"hasDynamicHelp": false,
|
|
587
575
|
"multiple": false,
|
|
588
576
|
"type": "option"
|
|
589
577
|
},
|
|
590
|
-
"
|
|
591
|
-
"env": "
|
|
592
|
-
"name": "
|
|
593
|
-
"
|
|
578
|
+
"project-access-token": {
|
|
579
|
+
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
580
|
+
"name": "project-access-token",
|
|
581
|
+
"required": true,
|
|
582
|
+
"summary": "Access token used to authenticate git remote operations (tagging, pushing).",
|
|
594
583
|
"hasDynamicHelp": false,
|
|
595
584
|
"multiple": false,
|
|
596
585
|
"type": "option"
|
|
597
586
|
},
|
|
598
|
-
"
|
|
599
|
-
"env": "
|
|
600
|
-
"name": "
|
|
601
|
-
"summary": "
|
|
587
|
+
"vcs-host": {
|
|
588
|
+
"env": "SIMPLY_CICD_VCS_HOST",
|
|
589
|
+
"name": "vcs-host",
|
|
590
|
+
"summary": "Hostname of the VCS instance hosting this project.",
|
|
602
591
|
"hasDynamicHelp": false,
|
|
603
592
|
"multiple": false,
|
|
604
593
|
"type": "option"
|
|
605
594
|
},
|
|
606
|
-
"
|
|
607
|
-
"env": "
|
|
608
|
-
"name": "
|
|
609
|
-
"summary": "The
|
|
595
|
+
"vcs-provider": {
|
|
596
|
+
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
597
|
+
"name": "vcs-provider",
|
|
598
|
+
"summary": "The VCS platform hosting this project.",
|
|
599
|
+
"default": "gitlab",
|
|
610
600
|
"hasDynamicHelp": false,
|
|
611
601
|
"multiple": false,
|
|
602
|
+
"options": [
|
|
603
|
+
"github",
|
|
604
|
+
"gitlab"
|
|
605
|
+
],
|
|
612
606
|
"type": "option"
|
|
613
607
|
},
|
|
614
|
-
"
|
|
615
|
-
"env": "
|
|
616
|
-
"name": "
|
|
617
|
-
"summary": "
|
|
618
|
-
"
|
|
619
|
-
"
|
|
620
|
-
"type": "option"
|
|
608
|
+
"debug": {
|
|
609
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
610
|
+
"name": "debug",
|
|
611
|
+
"summary": "Enable verbose debug logging.",
|
|
612
|
+
"allowNo": false,
|
|
613
|
+
"type": "boolean"
|
|
621
614
|
},
|
|
622
|
-
"
|
|
623
|
-
"env": "
|
|
624
|
-
"name": "
|
|
625
|
-
"summary": "
|
|
615
|
+
"disabled": {
|
|
616
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
617
|
+
"name": "disabled",
|
|
618
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
626
619
|
"allowNo": false,
|
|
627
620
|
"type": "boolean"
|
|
628
621
|
},
|
|
629
|
-
"
|
|
630
|
-
"env": "
|
|
631
|
-
"name": "
|
|
632
|
-
"
|
|
622
|
+
"ci-commit-sha": {
|
|
623
|
+
"env": "SIMPLY_CICD_CI_COMMIT_SHA",
|
|
624
|
+
"name": "ci-commit-sha",
|
|
625
|
+
"required": true,
|
|
626
|
+
"summary": "Commit SHA to tag as the package version's source.",
|
|
633
627
|
"hasDynamicHelp": false,
|
|
634
628
|
"multiple": false,
|
|
635
629
|
"type": "option"
|
|
636
630
|
},
|
|
637
|
-
"
|
|
638
|
-
"env": "
|
|
639
|
-
"name": "
|
|
640
|
-
"summary": "
|
|
631
|
+
"ci-pipeline-source": {
|
|
632
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_SOURCE",
|
|
633
|
+
"name": "ci-pipeline-source",
|
|
634
|
+
"summary": "Source trigger of the CI pipeline (e.g. merge_request_event). When set to merge_request_event, package creation is skipped.",
|
|
641
635
|
"hasDynamicHelp": false,
|
|
642
636
|
"multiple": false,
|
|
643
637
|
"type": "option"
|
|
644
638
|
},
|
|
645
|
-
"
|
|
646
|
-
"env": "
|
|
647
|
-
"name": "
|
|
648
|
-
"
|
|
649
|
-
"
|
|
639
|
+
"ci-pipeline-url": {
|
|
640
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_URL",
|
|
641
|
+
"name": "ci-pipeline-url",
|
|
642
|
+
"required": true,
|
|
643
|
+
"summary": "URL of the CI pipeline, used as the package version's description.",
|
|
650
644
|
"hasDynamicHelp": false,
|
|
651
645
|
"multiple": false,
|
|
652
|
-
"options": [
|
|
653
|
-
"gitlab-issues",
|
|
654
|
-
"jira"
|
|
655
|
-
],
|
|
656
646
|
"type": "option"
|
|
657
647
|
},
|
|
658
|
-
"
|
|
659
|
-
"
|
|
660
|
-
"
|
|
648
|
+
"packaging-devhub": {
|
|
649
|
+
"env": "SIMPLY_CICD_PACKAGING_DEVHUB",
|
|
650
|
+
"name": "packaging-devhub",
|
|
651
|
+
"required": true,
|
|
652
|
+
"summary": "Alias of the Dev Hub used for packaging operations like package version creation. Must already be authenticated.",
|
|
661
653
|
"hasDynamicHelp": false,
|
|
662
654
|
"multiple": false,
|
|
663
655
|
"type": "option"
|
|
664
656
|
},
|
|
665
|
-
"
|
|
666
|
-
"name": "
|
|
667
|
-
"summary": "
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"type": "option"
|
|
657
|
+
"always-create-package": {
|
|
658
|
+
"name": "always-create-package",
|
|
659
|
+
"summary": "Create a package version even when this isn't a release-branch build.",
|
|
660
|
+
"allowNo": false,
|
|
661
|
+
"type": "boolean"
|
|
671
662
|
},
|
|
672
|
-
"
|
|
673
|
-
"name": "
|
|
674
|
-
"summary": "
|
|
663
|
+
"code-coverage-minimum": {
|
|
664
|
+
"name": "code-coverage-minimum",
|
|
665
|
+
"summary": "Minimum Apex code coverage percentage required for the new package version.",
|
|
666
|
+
"default": "75",
|
|
675
667
|
"hasDynamicHelp": false,
|
|
676
668
|
"multiple": false,
|
|
677
669
|
"type": "option"
|
|
678
670
|
},
|
|
679
|
-
"
|
|
680
|
-
"name": "
|
|
681
|
-
"summary": "
|
|
671
|
+
"package-release-branch-prefix": {
|
|
672
|
+
"name": "package-release-branch-prefix",
|
|
673
|
+
"summary": "Prefix identifying release branches. Determines whether this build creates a package version and how the resulting git tag is named.",
|
|
682
674
|
"hasDynamicHelp": false,
|
|
683
|
-
"multiple":
|
|
675
|
+
"multiple": false,
|
|
684
676
|
"type": "option"
|
|
685
|
-
},
|
|
686
|
-
"debug": {
|
|
687
|
-
"env": "SIMPLY_CICD_DEBUG",
|
|
688
|
-
"name": "debug",
|
|
689
|
-
"summary": "Enable verbose debug logging.",
|
|
690
|
-
"allowNo": false,
|
|
691
|
-
"type": "boolean"
|
|
692
677
|
}
|
|
693
678
|
},
|
|
694
679
|
"hasDynamicHelp": false,
|
|
695
680
|
"hiddenAliases": [],
|
|
696
|
-
"id": "simply:cicd:
|
|
681
|
+
"id": "simply:cicd:build:create-package-version",
|
|
697
682
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
698
683
|
"pluginName": "@simplysf/simply-cicd",
|
|
699
684
|
"pluginType": "core",
|
|
700
685
|
"strict": true,
|
|
701
|
-
"summary": "
|
|
686
|
+
"summary": "Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.",
|
|
702
687
|
"enableJsonFlag": true,
|
|
703
688
|
"isESM": true,
|
|
704
689
|
"relativePath": [
|
|
@@ -706,43 +691,43 @@
|
|
|
706
691
|
"commands",
|
|
707
692
|
"simply",
|
|
708
693
|
"cicd",
|
|
709
|
-
"
|
|
710
|
-
"
|
|
694
|
+
"build",
|
|
695
|
+
"create-package-version.js"
|
|
711
696
|
],
|
|
712
697
|
"aliasPermutations": [],
|
|
713
698
|
"permutations": [
|
|
714
|
-
"simply:cicd:
|
|
715
|
-
"cicd:simply:
|
|
716
|
-
"cicd:
|
|
717
|
-
"cicd:
|
|
718
|
-
"simply:
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
"
|
|
722
|
-
"simply:
|
|
723
|
-
"
|
|
724
|
-
"
|
|
725
|
-
"
|
|
726
|
-
"simply:cicd:
|
|
727
|
-
"cicd:simply:
|
|
728
|
-
"cicd:
|
|
729
|
-
"cicd:
|
|
730
|
-
"simply:
|
|
731
|
-
"
|
|
732
|
-
"
|
|
733
|
-
"
|
|
734
|
-
"simply:
|
|
735
|
-
"
|
|
736
|
-
"
|
|
737
|
-
"
|
|
699
|
+
"simply:cicd:build:create-package-version",
|
|
700
|
+
"cicd:simply:build:create-package-version",
|
|
701
|
+
"cicd:build:simply:create-package-version",
|
|
702
|
+
"cicd:build:create-package-version:simply",
|
|
703
|
+
"simply:build:cicd:create-package-version",
|
|
704
|
+
"build:simply:cicd:create-package-version",
|
|
705
|
+
"build:cicd:simply:create-package-version",
|
|
706
|
+
"build:cicd:create-package-version:simply",
|
|
707
|
+
"simply:build:create-package-version:cicd",
|
|
708
|
+
"build:simply:create-package-version:cicd",
|
|
709
|
+
"build:create-package-version:simply:cicd",
|
|
710
|
+
"build:create-package-version:cicd:simply",
|
|
711
|
+
"simply:cicd:create-package-version:build",
|
|
712
|
+
"cicd:simply:create-package-version:build",
|
|
713
|
+
"cicd:create-package-version:simply:build",
|
|
714
|
+
"cicd:create-package-version:build:simply",
|
|
715
|
+
"simply:create-package-version:cicd:build",
|
|
716
|
+
"create-package-version:simply:cicd:build",
|
|
717
|
+
"create-package-version:cicd:simply:build",
|
|
718
|
+
"create-package-version:cicd:build:simply",
|
|
719
|
+
"simply:create-package-version:build:cicd",
|
|
720
|
+
"create-package-version:simply:build:cicd",
|
|
721
|
+
"create-package-version:build:simply:cicd",
|
|
722
|
+
"create-package-version:build:cicd:simply"
|
|
738
723
|
]
|
|
739
724
|
},
|
|
740
|
-
"simply:cicd:
|
|
725
|
+
"simply:cicd:build:create-scratch": {
|
|
741
726
|
"aliases": [],
|
|
742
727
|
"args": {},
|
|
743
|
-
"description": "
|
|
728
|
+
"description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub that has hit its daily scratch org limit is skipped in favor of the next one. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
744
729
|
"examples": [
|
|
745
|
-
"<%= config.bin %> <%= command.id %> --
|
|
730
|
+
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
746
731
|
],
|
|
747
732
|
"flags": {
|
|
748
733
|
"json": {
|
|
@@ -760,46 +745,52 @@
|
|
|
760
745
|
"multiple": false,
|
|
761
746
|
"type": "option"
|
|
762
747
|
},
|
|
763
|
-
"
|
|
764
|
-
"name": "
|
|
765
|
-
"required": true,
|
|
766
|
-
"summary": "The JSON payload to send to Teams, as a serialized string.",
|
|
767
|
-
"hasDynamicHelp": false,
|
|
768
|
-
"multiple": false,
|
|
769
|
-
"type": "option"
|
|
770
|
-
},
|
|
771
|
-
"webhook-url": {
|
|
772
|
-
"env": "SIMPLY_CICD_WEBHOOK_URL",
|
|
773
|
-
"name": "webhook-url",
|
|
748
|
+
"dev-hub": {
|
|
749
|
+
"name": "dev-hub",
|
|
774
750
|
"required": true,
|
|
775
|
-
"summary": "
|
|
751
|
+
"summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
|
|
776
752
|
"hasDynamicHelp": false,
|
|
777
|
-
"multiple":
|
|
753
|
+
"multiple": true,
|
|
778
754
|
"type": "option"
|
|
779
755
|
},
|
|
780
|
-
"enabled": {
|
|
781
|
-
"env": "SIMPLY_CICD_ENABLED",
|
|
782
|
-
"name": "enabled",
|
|
783
|
-
"summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
|
|
784
|
-
"allowNo": false,
|
|
785
|
-
"type": "boolean"
|
|
786
|
-
},
|
|
787
756
|
"debug": {
|
|
788
757
|
"env": "SIMPLY_CICD_DEBUG",
|
|
789
758
|
"name": "debug",
|
|
790
759
|
"summary": "Enable verbose debug logging.",
|
|
791
760
|
"allowNo": false,
|
|
792
761
|
"type": "boolean"
|
|
762
|
+
},
|
|
763
|
+
"disabled": {
|
|
764
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
765
|
+
"name": "disabled",
|
|
766
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
767
|
+
"allowNo": false,
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
"scratch-definition-file": {
|
|
771
|
+
"name": "scratch-definition-file",
|
|
772
|
+
"summary": "Definition file used to create the scratch org, if not specified in sfdx-project.json.",
|
|
773
|
+
"hasDynamicHelp": false,
|
|
774
|
+
"multiple": false,
|
|
775
|
+
"type": "option"
|
|
776
|
+
},
|
|
777
|
+
"scratch-duration-days": {
|
|
778
|
+
"name": "scratch-duration-days",
|
|
779
|
+
"summary": "Duration of the scratch org in days.",
|
|
780
|
+
"default": "1",
|
|
781
|
+
"hasDynamicHelp": false,
|
|
782
|
+
"multiple": false,
|
|
783
|
+
"type": "option"
|
|
793
784
|
}
|
|
794
785
|
},
|
|
795
786
|
"hasDynamicHelp": false,
|
|
796
787
|
"hiddenAliases": [],
|
|
797
|
-
"id": "simply:cicd:
|
|
788
|
+
"id": "simply:cicd:build:create-scratch",
|
|
798
789
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
799
790
|
"pluginName": "@simplysf/simply-cicd",
|
|
800
791
|
"pluginType": "core",
|
|
801
792
|
"strict": true,
|
|
802
|
-
"summary": "
|
|
793
|
+
"summary": "Create a scratch org, trying each configured Dev Hub in order.",
|
|
803
794
|
"enableJsonFlag": true,
|
|
804
795
|
"isESM": true,
|
|
805
796
|
"relativePath": [
|
|
@@ -807,41 +798,41 @@
|
|
|
807
798
|
"commands",
|
|
808
799
|
"simply",
|
|
809
800
|
"cicd",
|
|
810
|
-
"
|
|
811
|
-
"
|
|
801
|
+
"build",
|
|
802
|
+
"create-scratch.js"
|
|
812
803
|
],
|
|
813
804
|
"aliasPermutations": [],
|
|
814
805
|
"permutations": [
|
|
815
|
-
"simply:cicd:
|
|
816
|
-
"cicd:simply:
|
|
817
|
-
"cicd:
|
|
818
|
-
"cicd:
|
|
819
|
-
"simply:
|
|
820
|
-
"
|
|
821
|
-
"
|
|
822
|
-
"
|
|
823
|
-
"simply:
|
|
824
|
-
"
|
|
825
|
-
"
|
|
826
|
-
"
|
|
827
|
-
"simply:cicd:
|
|
828
|
-
"cicd:simply:
|
|
829
|
-
"cicd:
|
|
830
|
-
"cicd:
|
|
831
|
-
"simply:
|
|
832
|
-
"
|
|
833
|
-
"
|
|
834
|
-
"
|
|
835
|
-
"simply:
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
"
|
|
806
|
+
"simply:cicd:build:create-scratch",
|
|
807
|
+
"cicd:simply:build:create-scratch",
|
|
808
|
+
"cicd:build:simply:create-scratch",
|
|
809
|
+
"cicd:build:create-scratch:simply",
|
|
810
|
+
"simply:build:cicd:create-scratch",
|
|
811
|
+
"build:simply:cicd:create-scratch",
|
|
812
|
+
"build:cicd:simply:create-scratch",
|
|
813
|
+
"build:cicd:create-scratch:simply",
|
|
814
|
+
"simply:build:create-scratch:cicd",
|
|
815
|
+
"build:simply:create-scratch:cicd",
|
|
816
|
+
"build:create-scratch:simply:cicd",
|
|
817
|
+
"build:create-scratch:cicd:simply",
|
|
818
|
+
"simply:cicd:create-scratch:build",
|
|
819
|
+
"cicd:simply:create-scratch:build",
|
|
820
|
+
"cicd:create-scratch:simply:build",
|
|
821
|
+
"cicd:create-scratch:build:simply",
|
|
822
|
+
"simply:create-scratch:cicd:build",
|
|
823
|
+
"create-scratch:simply:cicd:build",
|
|
824
|
+
"create-scratch:cicd:simply:build",
|
|
825
|
+
"create-scratch:cicd:build:simply",
|
|
826
|
+
"simply:create-scratch:build:cicd",
|
|
827
|
+
"create-scratch:simply:build:cicd",
|
|
828
|
+
"create-scratch:build:simply:cicd",
|
|
829
|
+
"create-scratch:build:cicd:simply"
|
|
839
830
|
]
|
|
840
831
|
},
|
|
841
|
-
"simply:cicd:build:
|
|
832
|
+
"simply:cicd:build:delete-scratch": {
|
|
842
833
|
"aliases": [],
|
|
843
834
|
"args": {},
|
|
844
|
-
"description": "
|
|
835
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to confirm `--dev-hub` is the Dev Hub that owns the scratch org, re-authenticates to it and the scratch org as needed, and deletes it. Deletion failures are logged rather than thrown, since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an otherwise-successful pipeline run.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
845
836
|
"examples": [
|
|
846
837
|
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
847
838
|
],
|
|
@@ -866,7 +857,15 @@
|
|
|
866
857
|
"required": true,
|
|
867
858
|
"summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
|
|
868
859
|
"hasDynamicHelp": false,
|
|
869
|
-
"multiple":
|
|
860
|
+
"multiple": false,
|
|
861
|
+
"type": "option"
|
|
862
|
+
},
|
|
863
|
+
"jwt-key-file": {
|
|
864
|
+
"env": "SIMPLY_CICD_JWT_KEY_FILE",
|
|
865
|
+
"name": "jwt-key-file",
|
|
866
|
+
"summary": "Path to the JWT private key file used to re-authenticate the scratch org (or its Dev Hub) when it was JWT-authenticated. Not needed when the Dev Hub was authenticated via web login or an SFDX auth URL — the scratch org's own refresh token is used instead.",
|
|
867
|
+
"hasDynamicHelp": false,
|
|
868
|
+
"multiple": false,
|
|
870
869
|
"type": "option"
|
|
871
870
|
},
|
|
872
871
|
"debug": {
|
|
@@ -886,12 +885,12 @@
|
|
|
886
885
|
},
|
|
887
886
|
"hasDynamicHelp": false,
|
|
888
887
|
"hiddenAliases": [],
|
|
889
|
-
"id": "simply:cicd:build:
|
|
888
|
+
"id": "simply:cicd:build:delete-scratch",
|
|
890
889
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
891
890
|
"pluginName": "@simplysf/simply-cicd",
|
|
892
891
|
"pluginType": "core",
|
|
893
892
|
"strict": true,
|
|
894
|
-
"summary": "Delete scratch
|
|
893
|
+
"summary": "Delete the scratch org created by `build create-scratch`.",
|
|
895
894
|
"enableJsonFlag": true,
|
|
896
895
|
"isESM": true,
|
|
897
896
|
"relativePath": [
|
|
@@ -900,42 +899,42 @@
|
|
|
900
899
|
"simply",
|
|
901
900
|
"cicd",
|
|
902
901
|
"build",
|
|
903
|
-
"
|
|
902
|
+
"delete-scratch.js"
|
|
904
903
|
],
|
|
905
904
|
"aliasPermutations": [],
|
|
906
905
|
"permutations": [
|
|
907
|
-
"simply:cicd:build:
|
|
908
|
-
"cicd:simply:build:
|
|
909
|
-
"cicd:build:simply:
|
|
910
|
-
"cicd:build:
|
|
911
|
-
"simply:build:cicd:
|
|
912
|
-
"build:simply:cicd:
|
|
913
|
-
"build:cicd:simply:
|
|
914
|
-
"build:cicd:
|
|
915
|
-
"simply:build:
|
|
916
|
-
"build:simply:
|
|
917
|
-
"build:
|
|
918
|
-
"build:
|
|
919
|
-
"simply:cicd:
|
|
920
|
-
"cicd:simply:
|
|
921
|
-
"cicd:
|
|
922
|
-
"cicd:
|
|
923
|
-
"simply:
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
"
|
|
927
|
-
"simply:
|
|
928
|
-
"
|
|
929
|
-
"
|
|
930
|
-
"
|
|
906
|
+
"simply:cicd:build:delete-scratch",
|
|
907
|
+
"cicd:simply:build:delete-scratch",
|
|
908
|
+
"cicd:build:simply:delete-scratch",
|
|
909
|
+
"cicd:build:delete-scratch:simply",
|
|
910
|
+
"simply:build:cicd:delete-scratch",
|
|
911
|
+
"build:simply:cicd:delete-scratch",
|
|
912
|
+
"build:cicd:simply:delete-scratch",
|
|
913
|
+
"build:cicd:delete-scratch:simply",
|
|
914
|
+
"simply:build:delete-scratch:cicd",
|
|
915
|
+
"build:simply:delete-scratch:cicd",
|
|
916
|
+
"build:delete-scratch:simply:cicd",
|
|
917
|
+
"build:delete-scratch:cicd:simply",
|
|
918
|
+
"simply:cicd:delete-scratch:build",
|
|
919
|
+
"cicd:simply:delete-scratch:build",
|
|
920
|
+
"cicd:delete-scratch:simply:build",
|
|
921
|
+
"cicd:delete-scratch:build:simply",
|
|
922
|
+
"simply:delete-scratch:cicd:build",
|
|
923
|
+
"delete-scratch:simply:cicd:build",
|
|
924
|
+
"delete-scratch:cicd:simply:build",
|
|
925
|
+
"delete-scratch:cicd:build:simply",
|
|
926
|
+
"simply:delete-scratch:build:cicd",
|
|
927
|
+
"delete-scratch:simply:build:cicd",
|
|
928
|
+
"delete-scratch:build:simply:cicd",
|
|
929
|
+
"delete-scratch:build:cicd:simply"
|
|
931
930
|
]
|
|
932
931
|
},
|
|
933
|
-
"simply:cicd:build:
|
|
932
|
+
"simply:cicd:build:determine-package-changes": {
|
|
934
933
|
"aliases": [],
|
|
935
934
|
"args": {},
|
|
936
|
-
"description": "
|
|
935
|
+
"description": "Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag for its `major.minor.patch` (in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, `v<major>.<minor>.<patch>.*` by default), and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes `PACKAGE_CHANGED=TRUE|FALSE` and `LAST_TAG=<tag>` to the output file. Any failure during detection (missing/invalid sfdx-project.json, git errors) defaults to `PACKAGE_CHANGED=TRUE`, so a build never silently skips work it should have done.",
|
|
937
936
|
"examples": [
|
|
938
|
-
"<%= config.bin %> <%= command.id %> --
|
|
937
|
+
"<%= config.bin %> <%= command.id %> --out changes.env"
|
|
939
938
|
],
|
|
940
939
|
"flags": {
|
|
941
940
|
"json": {
|
|
@@ -953,88 +952,24 @@
|
|
|
953
952
|
"multiple": false,
|
|
954
953
|
"type": "option"
|
|
955
954
|
},
|
|
956
|
-
"
|
|
957
|
-
"env": "
|
|
958
|
-
"name": "
|
|
959
|
-
"
|
|
960
|
-
"
|
|
961
|
-
"
|
|
962
|
-
"multiple": false,
|
|
963
|
-
"type": "option"
|
|
955
|
+
"debug": {
|
|
956
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
957
|
+
"name": "debug",
|
|
958
|
+
"summary": "Enable verbose debug logging.",
|
|
959
|
+
"allowNo": false,
|
|
960
|
+
"type": "boolean"
|
|
964
961
|
},
|
|
965
|
-
"
|
|
966
|
-
"env": "
|
|
967
|
-
"name": "
|
|
968
|
-
"
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"multiple": false,
|
|
972
|
-
"type": "option"
|
|
962
|
+
"disabled": {
|
|
963
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
964
|
+
"name": "disabled",
|
|
965
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
966
|
+
"allowNo": false,
|
|
967
|
+
"type": "boolean"
|
|
973
968
|
},
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"
|
|
977
|
-
"
|
|
978
|
-
"summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
|
|
979
|
-
"hasDynamicHelp": false,
|
|
980
|
-
"multiple": false,
|
|
981
|
-
"type": "option"
|
|
982
|
-
},
|
|
983
|
-
"project-access-token": {
|
|
984
|
-
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
985
|
-
"name": "project-access-token",
|
|
986
|
-
"required": true,
|
|
987
|
-
"summary": "Access token used to authenticate git remote operations (tagging, pushing).",
|
|
988
|
-
"hasDynamicHelp": false,
|
|
989
|
-
"multiple": false,
|
|
990
|
-
"type": "option"
|
|
991
|
-
},
|
|
992
|
-
"vcs-host": {
|
|
993
|
-
"env": "SIMPLY_CICD_VCS_HOST",
|
|
994
|
-
"name": "vcs-host",
|
|
995
|
-
"summary": "Hostname of the VCS instance hosting this project.",
|
|
996
|
-
"hasDynamicHelp": false,
|
|
997
|
-
"multiple": false,
|
|
998
|
-
"type": "option"
|
|
999
|
-
},
|
|
1000
|
-
"vcs-provider": {
|
|
1001
|
-
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
1002
|
-
"name": "vcs-provider",
|
|
1003
|
-
"summary": "The VCS platform hosting this project.",
|
|
1004
|
-
"default": "gitlab",
|
|
1005
|
-
"hasDynamicHelp": false,
|
|
1006
|
-
"multiple": false,
|
|
1007
|
-
"options": [
|
|
1008
|
-
"github",
|
|
1009
|
-
"gitlab"
|
|
1010
|
-
],
|
|
1011
|
-
"type": "option"
|
|
1012
|
-
},
|
|
1013
|
-
"debug": {
|
|
1014
|
-
"env": "SIMPLY_CICD_DEBUG",
|
|
1015
|
-
"name": "debug",
|
|
1016
|
-
"summary": "Enable verbose debug logging.",
|
|
1017
|
-
"allowNo": false,
|
|
1018
|
-
"type": "boolean"
|
|
1019
|
-
},
|
|
1020
|
-
"disabled": {
|
|
1021
|
-
"env": "SIMPLY_CICD_DISABLED",
|
|
1022
|
-
"name": "disabled",
|
|
1023
|
-
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1024
|
-
"allowNo": false,
|
|
1025
|
-
"type": "boolean"
|
|
1026
|
-
},
|
|
1027
|
-
"last-tag": {
|
|
1028
|
-
"name": "last-tag",
|
|
1029
|
-
"summary": "Manually specify the last tag to increment, instead of resolving it from git.",
|
|
1030
|
-
"hasDynamicHelp": false,
|
|
1031
|
-
"multiple": false,
|
|
1032
|
-
"type": "option"
|
|
1033
|
-
},
|
|
1034
|
-
"out": {
|
|
1035
|
-
"name": "out",
|
|
1036
|
-
"summary": "Output dotenv file path.",
|
|
1037
|
-
"default": "subscriberPackageVersionId.env",
|
|
969
|
+
"out": {
|
|
970
|
+
"name": "out",
|
|
971
|
+
"summary": "Output dotenv file path.",
|
|
972
|
+
"default": "changes.env",
|
|
1038
973
|
"hasDynamicHelp": false,
|
|
1039
974
|
"multiple": false,
|
|
1040
975
|
"type": "option"
|
|
@@ -1042,12 +977,12 @@
|
|
|
1042
977
|
},
|
|
1043
978
|
"hasDynamicHelp": false,
|
|
1044
979
|
"hiddenAliases": [],
|
|
1045
|
-
"id": "simply:cicd:build:
|
|
980
|
+
"id": "simply:cicd:build:determine-package-changes",
|
|
1046
981
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1047
982
|
"pluginName": "@simplysf/simply-cicd",
|
|
1048
983
|
"pluginType": "core",
|
|
1049
984
|
"strict": true,
|
|
1050
|
-
"summary": "
|
|
985
|
+
"summary": "Determine if any package-relevant files have changed since the last release tag.",
|
|
1051
986
|
"enableJsonFlag": true,
|
|
1052
987
|
"isESM": true,
|
|
1053
988
|
"relativePath": [
|
|
@@ -1056,42 +991,43 @@
|
|
|
1056
991
|
"simply",
|
|
1057
992
|
"cicd",
|
|
1058
993
|
"build",
|
|
1059
|
-
"
|
|
994
|
+
"determine-package-changes.js"
|
|
1060
995
|
],
|
|
1061
996
|
"aliasPermutations": [],
|
|
1062
997
|
"permutations": [
|
|
1063
|
-
"simply:cicd:build:
|
|
1064
|
-
"cicd:simply:build:
|
|
1065
|
-
"cicd:build:simply:
|
|
1066
|
-
"cicd:build:
|
|
1067
|
-
"simply:build:cicd:
|
|
1068
|
-
"build:simply:cicd:
|
|
1069
|
-
"build:cicd:simply:
|
|
1070
|
-
"build:cicd:
|
|
1071
|
-
"simply:build:
|
|
1072
|
-
"build:simply:
|
|
1073
|
-
"build:
|
|
1074
|
-
"build:
|
|
1075
|
-
"simply:cicd:
|
|
1076
|
-
"cicd:simply:
|
|
1077
|
-
"cicd:
|
|
1078
|
-
"cicd:
|
|
1079
|
-
"simply:
|
|
1080
|
-
"
|
|
1081
|
-
"
|
|
1082
|
-
"
|
|
1083
|
-
"simply:
|
|
1084
|
-
"
|
|
1085
|
-
"
|
|
1086
|
-
"
|
|
998
|
+
"simply:cicd:build:determine-package-changes",
|
|
999
|
+
"cicd:simply:build:determine-package-changes",
|
|
1000
|
+
"cicd:build:simply:determine-package-changes",
|
|
1001
|
+
"cicd:build:determine-package-changes:simply",
|
|
1002
|
+
"simply:build:cicd:determine-package-changes",
|
|
1003
|
+
"build:simply:cicd:determine-package-changes",
|
|
1004
|
+
"build:cicd:simply:determine-package-changes",
|
|
1005
|
+
"build:cicd:determine-package-changes:simply",
|
|
1006
|
+
"simply:build:determine-package-changes:cicd",
|
|
1007
|
+
"build:simply:determine-package-changes:cicd",
|
|
1008
|
+
"build:determine-package-changes:simply:cicd",
|
|
1009
|
+
"build:determine-package-changes:cicd:simply",
|
|
1010
|
+
"simply:cicd:determine-package-changes:build",
|
|
1011
|
+
"cicd:simply:determine-package-changes:build",
|
|
1012
|
+
"cicd:determine-package-changes:simply:build",
|
|
1013
|
+
"cicd:determine-package-changes:build:simply",
|
|
1014
|
+
"simply:determine-package-changes:cicd:build",
|
|
1015
|
+
"determine-package-changes:simply:cicd:build",
|
|
1016
|
+
"determine-package-changes:cicd:simply:build",
|
|
1017
|
+
"determine-package-changes:cicd:build:simply",
|
|
1018
|
+
"simply:determine-package-changes:build:cicd",
|
|
1019
|
+
"determine-package-changes:simply:build:cicd",
|
|
1020
|
+
"determine-package-changes:build:simply:cicd",
|
|
1021
|
+
"determine-package-changes:build:cicd:simply"
|
|
1087
1022
|
]
|
|
1088
1023
|
},
|
|
1089
|
-
"simply:cicd:build:
|
|
1024
|
+
"simply:cicd:build:generate-flexipage-diff": {
|
|
1090
1025
|
"aliases": [],
|
|
1091
1026
|
"args": {},
|
|
1092
|
-
"description": "
|
|
1027
|
+
"description": "Runs the upstream `flexipage-delta` binary to diff `**/*.flexipage-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flexipage-delta-gitlab` or `flexipage-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
|
|
1093
1028
|
"examples": [
|
|
1094
|
-
"<%= config.bin %> <%= command.id %> --ci-
|
|
1029
|
+
"<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
|
|
1030
|
+
"<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
|
|
1095
1031
|
],
|
|
1096
1032
|
"flags": {
|
|
1097
1033
|
"json": {
|
|
@@ -1109,211 +1045,115 @@
|
|
|
1109
1045
|
"multiple": false,
|
|
1110
1046
|
"type": "option"
|
|
1111
1047
|
},
|
|
1112
|
-
"
|
|
1113
|
-
"env": "
|
|
1114
|
-
"name": "
|
|
1115
|
-
"
|
|
1116
|
-
"summary": "Git branch or ref name being built.",
|
|
1048
|
+
"vcs-host": {
|
|
1049
|
+
"env": "SIMPLY_CICD_VCS_HOST",
|
|
1050
|
+
"name": "vcs-host",
|
|
1051
|
+
"summary": "Hostname of the VCS instance hosting this project.",
|
|
1117
1052
|
"hasDynamicHelp": false,
|
|
1118
1053
|
"multiple": false,
|
|
1119
1054
|
"type": "option"
|
|
1120
1055
|
},
|
|
1121
|
-
"
|
|
1122
|
-
"env": "
|
|
1123
|
-
"name": "
|
|
1124
|
-
"
|
|
1125
|
-
"
|
|
1056
|
+
"vcs-provider": {
|
|
1057
|
+
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
1058
|
+
"name": "vcs-provider",
|
|
1059
|
+
"summary": "The VCS platform hosting this project.",
|
|
1060
|
+
"default": "gitlab",
|
|
1126
1061
|
"hasDynamicHelp": false,
|
|
1127
1062
|
"multiple": false,
|
|
1063
|
+
"options": [
|
|
1064
|
+
"github",
|
|
1065
|
+
"gitlab"
|
|
1066
|
+
],
|
|
1128
1067
|
"type": "option"
|
|
1129
1068
|
},
|
|
1130
|
-
"ci-project-
|
|
1131
|
-
"env": "
|
|
1132
|
-
"name": "ci-project-
|
|
1133
|
-
"
|
|
1134
|
-
"summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
|
|
1069
|
+
"ci-project-id": {
|
|
1070
|
+
"env": "SIMPLY_CICD_CI_PROJECT_ID",
|
|
1071
|
+
"name": "ci-project-id",
|
|
1072
|
+
"summary": "GitLab only: numeric CI project ID of the project to post the diff to.",
|
|
1135
1073
|
"hasDynamicHelp": false,
|
|
1136
1074
|
"multiple": false,
|
|
1137
1075
|
"type": "option"
|
|
1138
1076
|
},
|
|
1139
|
-
"
|
|
1140
|
-
"env": "
|
|
1141
|
-
"name": "
|
|
1142
|
-
"
|
|
1143
|
-
"summary": "Access token used to authenticate git remote operations (tagging, pushing).",
|
|
1077
|
+
"ci-merge-request-iid": {
|
|
1078
|
+
"env": "SIMPLY_CICD_CI_MERGE_REQUEST_IID",
|
|
1079
|
+
"name": "ci-merge-request-iid",
|
|
1080
|
+
"summary": "GitLab only: internal ID of the merge request to post the diff to.",
|
|
1144
1081
|
"hasDynamicHelp": false,
|
|
1145
1082
|
"multiple": false,
|
|
1146
1083
|
"type": "option"
|
|
1147
1084
|
},
|
|
1148
|
-
"
|
|
1149
|
-
"env": "
|
|
1150
|
-
"name": "
|
|
1151
|
-
"summary": "
|
|
1085
|
+
"ci-repository": {
|
|
1086
|
+
"env": "SIMPLY_CICD_CI_REPOSITORY",
|
|
1087
|
+
"name": "ci-repository",
|
|
1088
|
+
"summary": "GitHub only: repository to post the diff to, as owner/repo.",
|
|
1152
1089
|
"hasDynamicHelp": false,
|
|
1153
1090
|
"multiple": false,
|
|
1154
1091
|
"type": "option"
|
|
1155
1092
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"env": "
|
|
1158
|
-
"name": "
|
|
1159
|
-
"summary": "
|
|
1160
|
-
"default": "gitlab",
|
|
1093
|
+
"ci-pull-request-number": {
|
|
1094
|
+
"env": "SIMPLY_CICD_CI_PULL_REQUEST_NUMBER",
|
|
1095
|
+
"name": "ci-pull-request-number",
|
|
1096
|
+
"summary": "GitHub only: number of the pull request to post the diff to.",
|
|
1161
1097
|
"hasDynamicHelp": false,
|
|
1162
1098
|
"multiple": false,
|
|
1163
|
-
"options": [
|
|
1164
|
-
"github",
|
|
1165
|
-
"gitlab"
|
|
1166
|
-
],
|
|
1167
1099
|
"type": "option"
|
|
1168
1100
|
},
|
|
1169
|
-
"
|
|
1170
|
-
"env": "
|
|
1171
|
-
"name": "
|
|
1172
|
-
"summary": "
|
|
1173
|
-
"
|
|
1174
|
-
"
|
|
1101
|
+
"ci-run-id": {
|
|
1102
|
+
"env": "SIMPLY_CICD_CI_RUN_ID",
|
|
1103
|
+
"name": "ci-run-id",
|
|
1104
|
+
"summary": "GitHub only: Actions run ID, used to build links back to the run's artifacts.",
|
|
1105
|
+
"hasDynamicHelp": false,
|
|
1106
|
+
"multiple": false,
|
|
1107
|
+
"type": "option"
|
|
1175
1108
|
},
|
|
1176
|
-
"
|
|
1177
|
-
"env": "
|
|
1178
|
-
"name": "
|
|
1179
|
-
"summary": "
|
|
1180
|
-
"
|
|
1181
|
-
"
|
|
1109
|
+
"ci-server-url": {
|
|
1110
|
+
"env": "SIMPLY_CICD_CI_SERVER_URL",
|
|
1111
|
+
"name": "ci-server-url",
|
|
1112
|
+
"summary": "GitHub only: server URL, for instances other than github.com.",
|
|
1113
|
+
"hasDynamicHelp": false,
|
|
1114
|
+
"multiple": false,
|
|
1115
|
+
"type": "option"
|
|
1182
1116
|
},
|
|
1183
1117
|
"ci-commit-sha": {
|
|
1184
1118
|
"env": "SIMPLY_CICD_CI_COMMIT_SHA",
|
|
1185
1119
|
"name": "ci-commit-sha",
|
|
1186
|
-
"
|
|
1187
|
-
"summary": "Commit SHA to tag as the package version's source.",
|
|
1120
|
+
"summary": "Commit SHA to attribute the posted diff to.",
|
|
1188
1121
|
"hasDynamicHelp": false,
|
|
1189
1122
|
"multiple": false,
|
|
1190
1123
|
"type": "option"
|
|
1191
1124
|
},
|
|
1192
|
-
"
|
|
1193
|
-
"
|
|
1194
|
-
"
|
|
1195
|
-
"summary": "
|
|
1125
|
+
"from": {
|
|
1126
|
+
"name": "from",
|
|
1127
|
+
"required": true,
|
|
1128
|
+
"summary": "Base commit SHA to diff from.",
|
|
1196
1129
|
"hasDynamicHelp": false,
|
|
1197
1130
|
"multiple": false,
|
|
1198
1131
|
"type": "option"
|
|
1199
1132
|
},
|
|
1200
|
-
"
|
|
1201
|
-
"
|
|
1202
|
-
"name": "ci-pipeline-url",
|
|
1133
|
+
"to": {
|
|
1134
|
+
"name": "to",
|
|
1203
1135
|
"required": true,
|
|
1204
|
-
"summary": "
|
|
1136
|
+
"summary": "Head commit SHA to diff to.",
|
|
1205
1137
|
"hasDynamicHelp": false,
|
|
1206
1138
|
"multiple": false,
|
|
1207
1139
|
"type": "option"
|
|
1208
1140
|
},
|
|
1209
|
-
"
|
|
1210
|
-
"env": "
|
|
1211
|
-
"name": "
|
|
1141
|
+
"project-access-token": {
|
|
1142
|
+
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
1143
|
+
"name": "project-access-token",
|
|
1212
1144
|
"required": true,
|
|
1213
|
-
"summary": "
|
|
1145
|
+
"summary": "Project access token used to post the diff results back to the merge request.",
|
|
1214
1146
|
"hasDynamicHelp": false,
|
|
1215
1147
|
"multiple": false,
|
|
1216
1148
|
"type": "option"
|
|
1217
1149
|
},
|
|
1218
|
-
"
|
|
1219
|
-
"name": "
|
|
1220
|
-
"summary": "
|
|
1221
|
-
"allowNo": false,
|
|
1222
|
-
"type": "boolean"
|
|
1223
|
-
},
|
|
1224
|
-
"code-coverage-minimum": {
|
|
1225
|
-
"name": "code-coverage-minimum",
|
|
1226
|
-
"summary": "Minimum Apex code coverage percentage required for the new package version.",
|
|
1227
|
-
"default": "75",
|
|
1150
|
+
"out": {
|
|
1151
|
+
"name": "out",
|
|
1152
|
+
"summary": "Output directory or file path for the delta results.",
|
|
1228
1153
|
"hasDynamicHelp": false,
|
|
1229
1154
|
"multiple": false,
|
|
1230
1155
|
"type": "option"
|
|
1231
1156
|
},
|
|
1232
|
-
"package-release-branch-prefix": {
|
|
1233
|
-
"name": "package-release-branch-prefix",
|
|
1234
|
-
"summary": "Prefix identifying release branches. Determines whether this build creates a package version and how the resulting git tag is named.",
|
|
1235
|
-
"hasDynamicHelp": false,
|
|
1236
|
-
"multiple": false,
|
|
1237
|
-
"type": "option"
|
|
1238
|
-
}
|
|
1239
|
-
},
|
|
1240
|
-
"hasDynamicHelp": false,
|
|
1241
|
-
"hiddenAliases": [],
|
|
1242
|
-
"id": "simply:cicd:build:create-package-version",
|
|
1243
|
-
"pluginAlias": "@simplysf/simply-cicd",
|
|
1244
|
-
"pluginName": "@simplysf/simply-cicd",
|
|
1245
|
-
"pluginType": "core",
|
|
1246
|
-
"strict": true,
|
|
1247
|
-
"summary": "Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.",
|
|
1248
|
-
"enableJsonFlag": true,
|
|
1249
|
-
"isESM": true,
|
|
1250
|
-
"relativePath": [
|
|
1251
|
-
"lib",
|
|
1252
|
-
"commands",
|
|
1253
|
-
"simply",
|
|
1254
|
-
"cicd",
|
|
1255
|
-
"build",
|
|
1256
|
-
"create-package-version.js"
|
|
1257
|
-
],
|
|
1258
|
-
"aliasPermutations": [],
|
|
1259
|
-
"permutations": [
|
|
1260
|
-
"simply:cicd:build:create-package-version",
|
|
1261
|
-
"cicd:simply:build:create-package-version",
|
|
1262
|
-
"cicd:build:simply:create-package-version",
|
|
1263
|
-
"cicd:build:create-package-version:simply",
|
|
1264
|
-
"simply:build:cicd:create-package-version",
|
|
1265
|
-
"build:simply:cicd:create-package-version",
|
|
1266
|
-
"build:cicd:simply:create-package-version",
|
|
1267
|
-
"build:cicd:create-package-version:simply",
|
|
1268
|
-
"simply:build:create-package-version:cicd",
|
|
1269
|
-
"build:simply:create-package-version:cicd",
|
|
1270
|
-
"build:create-package-version:simply:cicd",
|
|
1271
|
-
"build:create-package-version:cicd:simply",
|
|
1272
|
-
"simply:cicd:create-package-version:build",
|
|
1273
|
-
"cicd:simply:create-package-version:build",
|
|
1274
|
-
"cicd:create-package-version:simply:build",
|
|
1275
|
-
"cicd:create-package-version:build:simply",
|
|
1276
|
-
"simply:create-package-version:cicd:build",
|
|
1277
|
-
"create-package-version:simply:cicd:build",
|
|
1278
|
-
"create-package-version:cicd:simply:build",
|
|
1279
|
-
"create-package-version:cicd:build:simply",
|
|
1280
|
-
"simply:create-package-version:build:cicd",
|
|
1281
|
-
"create-package-version:simply:build:cicd",
|
|
1282
|
-
"create-package-version:build:simply:cicd",
|
|
1283
|
-
"create-package-version:build:cicd:simply"
|
|
1284
|
-
]
|
|
1285
|
-
},
|
|
1286
|
-
"simply:cicd:build:create-scratch": {
|
|
1287
|
-
"aliases": [],
|
|
1288
|
-
"args": {},
|
|
1289
|
-
"description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub that has hit its daily scratch org limit is skipped in favor of the next one. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1290
|
-
"examples": [
|
|
1291
|
-
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
1292
|
-
],
|
|
1293
|
-
"flags": {
|
|
1294
|
-
"json": {
|
|
1295
|
-
"description": "Format output as json.",
|
|
1296
|
-
"helpGroup": "GLOBAL",
|
|
1297
|
-
"name": "json",
|
|
1298
|
-
"allowNo": false,
|
|
1299
|
-
"type": "boolean"
|
|
1300
|
-
},
|
|
1301
|
-
"flags-dir": {
|
|
1302
|
-
"helpGroup": "GLOBAL",
|
|
1303
|
-
"name": "flags-dir",
|
|
1304
|
-
"summary": "Import flag values from a directory.",
|
|
1305
|
-
"hasDynamicHelp": false,
|
|
1306
|
-
"multiple": false,
|
|
1307
|
-
"type": "option"
|
|
1308
|
-
},
|
|
1309
|
-
"dev-hub": {
|
|
1310
|
-
"name": "dev-hub",
|
|
1311
|
-
"required": true,
|
|
1312
|
-
"summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
|
|
1313
|
-
"hasDynamicHelp": false,
|
|
1314
|
-
"multiple": true,
|
|
1315
|
-
"type": "option"
|
|
1316
|
-
},
|
|
1317
1157
|
"debug": {
|
|
1318
1158
|
"env": "SIMPLY_CICD_DEBUG",
|
|
1319
1159
|
"name": "debug",
|
|
@@ -1327,31 +1167,16 @@
|
|
|
1327
1167
|
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1328
1168
|
"allowNo": false,
|
|
1329
1169
|
"type": "boolean"
|
|
1330
|
-
},
|
|
1331
|
-
"scratch-definition-file": {
|
|
1332
|
-
"name": "scratch-definition-file",
|
|
1333
|
-
"summary": "Definition file used to create the scratch org, if not specified in sfdx-project.json.",
|
|
1334
|
-
"hasDynamicHelp": false,
|
|
1335
|
-
"multiple": false,
|
|
1336
|
-
"type": "option"
|
|
1337
|
-
},
|
|
1338
|
-
"scratch-duration-days": {
|
|
1339
|
-
"name": "scratch-duration-days",
|
|
1340
|
-
"summary": "Duration of the scratch org in days.",
|
|
1341
|
-
"default": "1",
|
|
1342
|
-
"hasDynamicHelp": false,
|
|
1343
|
-
"multiple": false,
|
|
1344
|
-
"type": "option"
|
|
1345
1170
|
}
|
|
1346
1171
|
},
|
|
1347
1172
|
"hasDynamicHelp": false,
|
|
1348
1173
|
"hiddenAliases": [],
|
|
1349
|
-
"id": "simply:cicd:build:
|
|
1174
|
+
"id": "simply:cicd:build:generate-flexipage-diff",
|
|
1350
1175
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1351
1176
|
"pluginName": "@simplysf/simply-cicd",
|
|
1352
1177
|
"pluginType": "core",
|
|
1353
1178
|
"strict": true,
|
|
1354
|
-
"summary": "
|
|
1179
|
+
"summary": "Generate a Flexipage delta between two commits and post the results to the change request.",
|
|
1355
1180
|
"enableJsonFlag": true,
|
|
1356
1181
|
"isESM": true,
|
|
1357
1182
|
"relativePath": [
|
|
@@ -1360,42 +1185,43 @@
|
|
|
1360
1185
|
"simply",
|
|
1361
1186
|
"cicd",
|
|
1362
1187
|
"build",
|
|
1363
|
-
"
|
|
1188
|
+
"generate-flexipage-diff.js"
|
|
1364
1189
|
],
|
|
1365
1190
|
"aliasPermutations": [],
|
|
1366
1191
|
"permutations": [
|
|
1367
|
-
"simply:cicd:build:
|
|
1368
|
-
"cicd:simply:build:
|
|
1369
|
-
"cicd:build:simply:
|
|
1370
|
-
"cicd:build:
|
|
1371
|
-
"simply:build:cicd:
|
|
1372
|
-
"build:simply:cicd:
|
|
1373
|
-
"build:cicd:simply:
|
|
1374
|
-
"build:cicd:
|
|
1375
|
-
"simply:build:
|
|
1376
|
-
"build:simply:
|
|
1377
|
-
"build:
|
|
1378
|
-
"build:
|
|
1379
|
-
"simply:cicd:
|
|
1380
|
-
"cicd:simply:
|
|
1381
|
-
"cicd:
|
|
1382
|
-
"cicd:
|
|
1383
|
-
"simply:
|
|
1384
|
-
"
|
|
1385
|
-
"
|
|
1386
|
-
"
|
|
1387
|
-
"simply:
|
|
1388
|
-
"
|
|
1389
|
-
"
|
|
1390
|
-
"
|
|
1192
|
+
"simply:cicd:build:generate-flexipage-diff",
|
|
1193
|
+
"cicd:simply:build:generate-flexipage-diff",
|
|
1194
|
+
"cicd:build:simply:generate-flexipage-diff",
|
|
1195
|
+
"cicd:build:generate-flexipage-diff:simply",
|
|
1196
|
+
"simply:build:cicd:generate-flexipage-diff",
|
|
1197
|
+
"build:simply:cicd:generate-flexipage-diff",
|
|
1198
|
+
"build:cicd:simply:generate-flexipage-diff",
|
|
1199
|
+
"build:cicd:generate-flexipage-diff:simply",
|
|
1200
|
+
"simply:build:generate-flexipage-diff:cicd",
|
|
1201
|
+
"build:simply:generate-flexipage-diff:cicd",
|
|
1202
|
+
"build:generate-flexipage-diff:simply:cicd",
|
|
1203
|
+
"build:generate-flexipage-diff:cicd:simply",
|
|
1204
|
+
"simply:cicd:generate-flexipage-diff:build",
|
|
1205
|
+
"cicd:simply:generate-flexipage-diff:build",
|
|
1206
|
+
"cicd:generate-flexipage-diff:simply:build",
|
|
1207
|
+
"cicd:generate-flexipage-diff:build:simply",
|
|
1208
|
+
"simply:generate-flexipage-diff:cicd:build",
|
|
1209
|
+
"generate-flexipage-diff:simply:cicd:build",
|
|
1210
|
+
"generate-flexipage-diff:cicd:simply:build",
|
|
1211
|
+
"generate-flexipage-diff:cicd:build:simply",
|
|
1212
|
+
"simply:generate-flexipage-diff:build:cicd",
|
|
1213
|
+
"generate-flexipage-diff:simply:build:cicd",
|
|
1214
|
+
"generate-flexipage-diff:build:simply:cicd",
|
|
1215
|
+
"generate-flexipage-diff:build:cicd:simply"
|
|
1391
1216
|
]
|
|
1392
1217
|
},
|
|
1393
|
-
"simply:cicd:build:
|
|
1218
|
+
"simply:cicd:build:generate-flow-diff": {
|
|
1394
1219
|
"aliases": [],
|
|
1395
1220
|
"args": {},
|
|
1396
|
-
"description": "
|
|
1221
|
+
"description": "Runs the upstream `flow-delta` binary to diff `**/*.flow-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flow-delta-gitlab` or `flow-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
|
|
1397
1222
|
"examples": [
|
|
1398
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1223
|
+
"<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
|
|
1224
|
+
"<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
|
|
1399
1225
|
],
|
|
1400
1226
|
"flags": {
|
|
1401
1227
|
"json": {
|
|
@@ -1413,18 +1239,111 @@
|
|
|
1413
1239
|
"multiple": false,
|
|
1414
1240
|
"type": "option"
|
|
1415
1241
|
},
|
|
1416
|
-
"
|
|
1417
|
-
"
|
|
1242
|
+
"vcs-host": {
|
|
1243
|
+
"env": "SIMPLY_CICD_VCS_HOST",
|
|
1244
|
+
"name": "vcs-host",
|
|
1245
|
+
"summary": "Hostname of the VCS instance hosting this project.",
|
|
1246
|
+
"hasDynamicHelp": false,
|
|
1247
|
+
"multiple": false,
|
|
1248
|
+
"type": "option"
|
|
1249
|
+
},
|
|
1250
|
+
"vcs-provider": {
|
|
1251
|
+
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
1252
|
+
"name": "vcs-provider",
|
|
1253
|
+
"summary": "The VCS platform hosting this project.",
|
|
1254
|
+
"default": "gitlab",
|
|
1255
|
+
"hasDynamicHelp": false,
|
|
1256
|
+
"multiple": false,
|
|
1257
|
+
"options": [
|
|
1258
|
+
"github",
|
|
1259
|
+
"gitlab"
|
|
1260
|
+
],
|
|
1261
|
+
"type": "option"
|
|
1262
|
+
},
|
|
1263
|
+
"ci-project-id": {
|
|
1264
|
+
"env": "SIMPLY_CICD_CI_PROJECT_ID",
|
|
1265
|
+
"name": "ci-project-id",
|
|
1266
|
+
"summary": "GitLab only: numeric CI project ID of the project to post the diff to.",
|
|
1267
|
+
"hasDynamicHelp": false,
|
|
1268
|
+
"multiple": false,
|
|
1269
|
+
"type": "option"
|
|
1270
|
+
},
|
|
1271
|
+
"ci-merge-request-iid": {
|
|
1272
|
+
"env": "SIMPLY_CICD_CI_MERGE_REQUEST_IID",
|
|
1273
|
+
"name": "ci-merge-request-iid",
|
|
1274
|
+
"summary": "GitLab only: internal ID of the merge request to post the diff to.",
|
|
1275
|
+
"hasDynamicHelp": false,
|
|
1276
|
+
"multiple": false,
|
|
1277
|
+
"type": "option"
|
|
1278
|
+
},
|
|
1279
|
+
"ci-repository": {
|
|
1280
|
+
"env": "SIMPLY_CICD_CI_REPOSITORY",
|
|
1281
|
+
"name": "ci-repository",
|
|
1282
|
+
"summary": "GitHub only: repository to post the diff to, as owner/repo.",
|
|
1283
|
+
"hasDynamicHelp": false,
|
|
1284
|
+
"multiple": false,
|
|
1285
|
+
"type": "option"
|
|
1286
|
+
},
|
|
1287
|
+
"ci-pull-request-number": {
|
|
1288
|
+
"env": "SIMPLY_CICD_CI_PULL_REQUEST_NUMBER",
|
|
1289
|
+
"name": "ci-pull-request-number",
|
|
1290
|
+
"summary": "GitHub only: number of the pull request to post the diff to.",
|
|
1291
|
+
"hasDynamicHelp": false,
|
|
1292
|
+
"multiple": false,
|
|
1293
|
+
"type": "option"
|
|
1294
|
+
},
|
|
1295
|
+
"ci-run-id": {
|
|
1296
|
+
"env": "SIMPLY_CICD_CI_RUN_ID",
|
|
1297
|
+
"name": "ci-run-id",
|
|
1298
|
+
"summary": "GitHub only: Actions run ID, used to build links back to the run's artifacts.",
|
|
1299
|
+
"hasDynamicHelp": false,
|
|
1300
|
+
"multiple": false,
|
|
1301
|
+
"type": "option"
|
|
1302
|
+
},
|
|
1303
|
+
"ci-server-url": {
|
|
1304
|
+
"env": "SIMPLY_CICD_CI_SERVER_URL",
|
|
1305
|
+
"name": "ci-server-url",
|
|
1306
|
+
"summary": "GitHub only: server URL, for instances other than github.com.",
|
|
1307
|
+
"hasDynamicHelp": false,
|
|
1308
|
+
"multiple": false,
|
|
1309
|
+
"type": "option"
|
|
1310
|
+
},
|
|
1311
|
+
"ci-commit-sha": {
|
|
1312
|
+
"env": "SIMPLY_CICD_CI_COMMIT_SHA",
|
|
1313
|
+
"name": "ci-commit-sha",
|
|
1314
|
+
"summary": "Commit SHA to attribute the posted diff to.",
|
|
1315
|
+
"hasDynamicHelp": false,
|
|
1316
|
+
"multiple": false,
|
|
1317
|
+
"type": "option"
|
|
1318
|
+
},
|
|
1319
|
+
"from": {
|
|
1320
|
+
"name": "from",
|
|
1418
1321
|
"required": true,
|
|
1419
|
-
"summary": "
|
|
1322
|
+
"summary": "Base commit SHA to diff from.",
|
|
1420
1323
|
"hasDynamicHelp": false,
|
|
1421
1324
|
"multiple": false,
|
|
1422
1325
|
"type": "option"
|
|
1423
1326
|
},
|
|
1424
|
-
"
|
|
1425
|
-
"
|
|
1426
|
-
"
|
|
1427
|
-
"summary": "
|
|
1327
|
+
"to": {
|
|
1328
|
+
"name": "to",
|
|
1329
|
+
"required": true,
|
|
1330
|
+
"summary": "Head commit SHA to diff to.",
|
|
1331
|
+
"hasDynamicHelp": false,
|
|
1332
|
+
"multiple": false,
|
|
1333
|
+
"type": "option"
|
|
1334
|
+
},
|
|
1335
|
+
"project-access-token": {
|
|
1336
|
+
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
1337
|
+
"name": "project-access-token",
|
|
1338
|
+
"required": true,
|
|
1339
|
+
"summary": "Project access token used to post the diff results back to the merge request.",
|
|
1340
|
+
"hasDynamicHelp": false,
|
|
1341
|
+
"multiple": false,
|
|
1342
|
+
"type": "option"
|
|
1343
|
+
},
|
|
1344
|
+
"out": {
|
|
1345
|
+
"name": "out",
|
|
1346
|
+
"summary": "Output directory or file path for the delta results.",
|
|
1428
1347
|
"hasDynamicHelp": false,
|
|
1429
1348
|
"multiple": false,
|
|
1430
1349
|
"type": "option"
|
|
@@ -1446,12 +1365,12 @@
|
|
|
1446
1365
|
},
|
|
1447
1366
|
"hasDynamicHelp": false,
|
|
1448
1367
|
"hiddenAliases": [],
|
|
1449
|
-
"id": "simply:cicd:build:
|
|
1368
|
+
"id": "simply:cicd:build:generate-flow-diff",
|
|
1450
1369
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1451
1370
|
"pluginName": "@simplysf/simply-cicd",
|
|
1452
1371
|
"pluginType": "core",
|
|
1453
1372
|
"strict": true,
|
|
1454
|
-
"summary": "
|
|
1373
|
+
"summary": "Generate a Flow delta between two commits and post the results to the change request.",
|
|
1455
1374
|
"enableJsonFlag": true,
|
|
1456
1375
|
"isESM": true,
|
|
1457
1376
|
"relativePath": [
|
|
@@ -1460,42 +1379,42 @@
|
|
|
1460
1379
|
"simply",
|
|
1461
1380
|
"cicd",
|
|
1462
1381
|
"build",
|
|
1463
|
-
"
|
|
1382
|
+
"generate-flow-diff.js"
|
|
1464
1383
|
],
|
|
1465
1384
|
"aliasPermutations": [],
|
|
1466
1385
|
"permutations": [
|
|
1467
|
-
"simply:cicd:build:
|
|
1468
|
-
"cicd:simply:build:
|
|
1469
|
-
"cicd:build:simply:
|
|
1470
|
-
"cicd:build:
|
|
1471
|
-
"simply:build:cicd:
|
|
1472
|
-
"build:simply:cicd:
|
|
1473
|
-
"build:cicd:simply:
|
|
1474
|
-
"build:cicd:
|
|
1475
|
-
"simply:build:
|
|
1476
|
-
"build:simply:
|
|
1477
|
-
"build:
|
|
1478
|
-
"build:
|
|
1479
|
-
"simply:cicd:
|
|
1480
|
-
"cicd:simply:
|
|
1481
|
-
"cicd:
|
|
1482
|
-
"cicd:
|
|
1483
|
-
"simply:
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"simply:
|
|
1488
|
-
"
|
|
1489
|
-
"
|
|
1490
|
-
"
|
|
1386
|
+
"simply:cicd:build:generate-flow-diff",
|
|
1387
|
+
"cicd:simply:build:generate-flow-diff",
|
|
1388
|
+
"cicd:build:simply:generate-flow-diff",
|
|
1389
|
+
"cicd:build:generate-flow-diff:simply",
|
|
1390
|
+
"simply:build:cicd:generate-flow-diff",
|
|
1391
|
+
"build:simply:cicd:generate-flow-diff",
|
|
1392
|
+
"build:cicd:simply:generate-flow-diff",
|
|
1393
|
+
"build:cicd:generate-flow-diff:simply",
|
|
1394
|
+
"simply:build:generate-flow-diff:cicd",
|
|
1395
|
+
"build:simply:generate-flow-diff:cicd",
|
|
1396
|
+
"build:generate-flow-diff:simply:cicd",
|
|
1397
|
+
"build:generate-flow-diff:cicd:simply",
|
|
1398
|
+
"simply:cicd:generate-flow-diff:build",
|
|
1399
|
+
"cicd:simply:generate-flow-diff:build",
|
|
1400
|
+
"cicd:generate-flow-diff:simply:build",
|
|
1401
|
+
"cicd:generate-flow-diff:build:simply",
|
|
1402
|
+
"simply:generate-flow-diff:cicd:build",
|
|
1403
|
+
"generate-flow-diff:simply:cicd:build",
|
|
1404
|
+
"generate-flow-diff:cicd:simply:build",
|
|
1405
|
+
"generate-flow-diff:cicd:build:simply",
|
|
1406
|
+
"simply:generate-flow-diff:build:cicd",
|
|
1407
|
+
"generate-flow-diff:simply:build:cicd",
|
|
1408
|
+
"generate-flow-diff:build:simply:cicd",
|
|
1409
|
+
"generate-flow-diff:build:cicd:simply"
|
|
1491
1410
|
]
|
|
1492
1411
|
},
|
|
1493
|
-
"simply:cicd:build:
|
|
1412
|
+
"simply:cicd:build:install-dependencies": {
|
|
1494
1413
|
"aliases": [],
|
|
1495
1414
|
"args": {},
|
|
1496
|
-
"description": "Reads
|
|
1415
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its packaged dependencies.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1497
1416
|
"examples": [
|
|
1498
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1417
|
+
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1499
1418
|
],
|
|
1500
1419
|
"flags": {
|
|
1501
1420
|
"json": {
|
|
@@ -1513,6 +1432,14 @@
|
|
|
1513
1432
|
"multiple": false,
|
|
1514
1433
|
"type": "option"
|
|
1515
1434
|
},
|
|
1435
|
+
"jwt-key-file": {
|
|
1436
|
+
"env": "SIMPLY_CICD_JWT_KEY_FILE",
|
|
1437
|
+
"name": "jwt-key-file",
|
|
1438
|
+
"summary": "Path to the JWT private key file used to re-authenticate the scratch org (or its Dev Hub) when it was JWT-authenticated. Not needed when the Dev Hub was authenticated via web login or an SFDX auth URL — the scratch org's own refresh token is used instead.",
|
|
1439
|
+
"hasDynamicHelp": false,
|
|
1440
|
+
"multiple": false,
|
|
1441
|
+
"type": "option"
|
|
1442
|
+
},
|
|
1516
1443
|
"debug": {
|
|
1517
1444
|
"env": "SIMPLY_CICD_DEBUG",
|
|
1518
1445
|
"name": "debug",
|
|
@@ -1527,23 +1454,42 @@
|
|
|
1527
1454
|
"allowNo": false,
|
|
1528
1455
|
"type": "boolean"
|
|
1529
1456
|
},
|
|
1530
|
-
"
|
|
1531
|
-
"name": "
|
|
1532
|
-
"summary": "
|
|
1533
|
-
"default": "
|
|
1457
|
+
"install-type": {
|
|
1458
|
+
"name": "install-type",
|
|
1459
|
+
"summary": "The type of dependency installation to perform.",
|
|
1460
|
+
"default": "Upgrade",
|
|
1461
|
+
"hasDynamicHelp": false,
|
|
1462
|
+
"multiple": false,
|
|
1463
|
+
"options": [
|
|
1464
|
+
"All",
|
|
1465
|
+
"Delta",
|
|
1466
|
+
"Upgrade"
|
|
1467
|
+
],
|
|
1468
|
+
"type": "option"
|
|
1469
|
+
},
|
|
1470
|
+
"upgrade-type": {
|
|
1471
|
+
"description": "For package upgrades, specifies whether to mark all removed components as deprecated (DeprecateOnly), to delete removed components that can be safely deleted and deprecate the others (Mixed), or to delete all removed components, except for custom objects and custom fields, that don't have dependencies (Delete). The default is Mixed. DeprecateOnly and Delete only apply to unlocked package upgrades. Delete is not confirmed first: like every other prompt in a pipeline, it is auto-approved.",
|
|
1472
|
+
"name": "upgrade-type",
|
|
1473
|
+
"summary": "Upgrade type for the dependency installs; available only for unlocked packages.",
|
|
1474
|
+
"default": "Mixed",
|
|
1534
1475
|
"hasDynamicHelp": false,
|
|
1535
1476
|
"multiple": false,
|
|
1477
|
+
"options": [
|
|
1478
|
+
"DeprecateOnly",
|
|
1479
|
+
"Mixed",
|
|
1480
|
+
"Delete"
|
|
1481
|
+
],
|
|
1536
1482
|
"type": "option"
|
|
1537
1483
|
}
|
|
1538
1484
|
},
|
|
1539
1485
|
"hasDynamicHelp": false,
|
|
1540
1486
|
"hiddenAliases": [],
|
|
1541
|
-
"id": "simply:cicd:build:
|
|
1487
|
+
"id": "simply:cicd:build:install-dependencies",
|
|
1542
1488
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1543
1489
|
"pluginName": "@simplysf/simply-cicd",
|
|
1544
1490
|
"pluginType": "core",
|
|
1545
1491
|
"strict": true,
|
|
1546
|
-
"summary": "
|
|
1492
|
+
"summary": "Install packaged dependencies into the scratch org created by `build create-scratch`.",
|
|
1547
1493
|
"enableJsonFlag": true,
|
|
1548
1494
|
"isESM": true,
|
|
1549
1495
|
"relativePath": [
|
|
@@ -1552,43 +1498,43 @@
|
|
|
1552
1498
|
"simply",
|
|
1553
1499
|
"cicd",
|
|
1554
1500
|
"build",
|
|
1555
|
-
"
|
|
1501
|
+
"install-dependencies.js"
|
|
1556
1502
|
],
|
|
1557
1503
|
"aliasPermutations": [],
|
|
1558
1504
|
"permutations": [
|
|
1559
|
-
"simply:cicd:build:
|
|
1560
|
-
"cicd:simply:build:
|
|
1561
|
-
"cicd:build:simply:
|
|
1562
|
-
"cicd:build:
|
|
1563
|
-
"simply:build:cicd:
|
|
1564
|
-
"build:simply:cicd:
|
|
1565
|
-
"build:cicd:simply:
|
|
1566
|
-
"build:cicd:
|
|
1567
|
-
"simply:build:
|
|
1568
|
-
"build:simply:
|
|
1569
|
-
"build:
|
|
1570
|
-
"build:
|
|
1571
|
-
"simply:cicd:
|
|
1572
|
-
"cicd:simply:
|
|
1573
|
-
"cicd:
|
|
1574
|
-
"cicd:
|
|
1575
|
-
"simply:
|
|
1576
|
-
"
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"simply:
|
|
1580
|
-
"
|
|
1581
|
-
"
|
|
1582
|
-
"
|
|
1505
|
+
"simply:cicd:build:install-dependencies",
|
|
1506
|
+
"cicd:simply:build:install-dependencies",
|
|
1507
|
+
"cicd:build:simply:install-dependencies",
|
|
1508
|
+
"cicd:build:install-dependencies:simply",
|
|
1509
|
+
"simply:build:cicd:install-dependencies",
|
|
1510
|
+
"build:simply:cicd:install-dependencies",
|
|
1511
|
+
"build:cicd:simply:install-dependencies",
|
|
1512
|
+
"build:cicd:install-dependencies:simply",
|
|
1513
|
+
"simply:build:install-dependencies:cicd",
|
|
1514
|
+
"build:simply:install-dependencies:cicd",
|
|
1515
|
+
"build:install-dependencies:simply:cicd",
|
|
1516
|
+
"build:install-dependencies:cicd:simply",
|
|
1517
|
+
"simply:cicd:install-dependencies:build",
|
|
1518
|
+
"cicd:simply:install-dependencies:build",
|
|
1519
|
+
"cicd:install-dependencies:simply:build",
|
|
1520
|
+
"cicd:install-dependencies:build:simply",
|
|
1521
|
+
"simply:install-dependencies:cicd:build",
|
|
1522
|
+
"install-dependencies:simply:cicd:build",
|
|
1523
|
+
"install-dependencies:cicd:simply:build",
|
|
1524
|
+
"install-dependencies:cicd:build:simply",
|
|
1525
|
+
"simply:install-dependencies:build:cicd",
|
|
1526
|
+
"install-dependencies:simply:build:cicd",
|
|
1527
|
+
"install-dependencies:build:simply:cicd",
|
|
1528
|
+
"install-dependencies:build:cicd:simply"
|
|
1583
1529
|
]
|
|
1584
1530
|
},
|
|
1585
|
-
"simply:cicd:build:
|
|
1531
|
+
"simply:cicd:build:lwc-jest": {
|
|
1586
1532
|
"aliases": [],
|
|
1587
1533
|
"args": {},
|
|
1588
|
-
"description": "
|
|
1534
|
+
"description": "Installs `@salesforce/sfdx-lwc-jest`, `@sa11y/jest`, and `jest-junit`, then runs `sfdx-lwc-jest --coverage -- --passWithNoTests` with the `jest-junit` reporter added to any reporters the project's own Jest config sets, writing a JUnit report to `./test-results/lwc/test-result.xml` for the pipeline to upload as an artifact. By default failures are logged, not thrown, so they don't fail the pipeline; pass `--lwc-jest-fail-on-test-failure` to make them exit non-zero.",
|
|
1589
1535
|
"examples": [
|
|
1590
|
-
"<%= config.bin %> <%= command.id %>
|
|
1591
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1536
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1537
|
+
"Fail the pipeline when a test fails:\n<%= config.bin %> <%= command.id %> --lwc-jest-fail-on-test-failure"
|
|
1592
1538
|
],
|
|
1593
1539
|
"flags": {
|
|
1594
1540
|
"json": {
|
|
@@ -1606,138 +1552,227 @@
|
|
|
1606
1552
|
"multiple": false,
|
|
1607
1553
|
"type": "option"
|
|
1608
1554
|
},
|
|
1609
|
-
"
|
|
1610
|
-
"env": "
|
|
1611
|
-
"name": "
|
|
1612
|
-
"summary": "
|
|
1613
|
-
"
|
|
1614
|
-
"
|
|
1615
|
-
"type": "option"
|
|
1555
|
+
"debug": {
|
|
1556
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
1557
|
+
"name": "debug",
|
|
1558
|
+
"summary": "Enable verbose debug logging.",
|
|
1559
|
+
"allowNo": false,
|
|
1560
|
+
"type": "boolean"
|
|
1616
1561
|
},
|
|
1617
|
-
"
|
|
1618
|
-
"env": "
|
|
1619
|
-
"name": "
|
|
1620
|
-
"summary": "
|
|
1621
|
-
"
|
|
1562
|
+
"disabled": {
|
|
1563
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
1564
|
+
"name": "disabled",
|
|
1565
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1566
|
+
"allowNo": false,
|
|
1567
|
+
"type": "boolean"
|
|
1568
|
+
},
|
|
1569
|
+
"lwc-jest-fail-on-test-failure": {
|
|
1570
|
+
"env": "SIMPLY_CICD_LWC_JEST_FAIL_ON_TEST_FAILURE",
|
|
1571
|
+
"name": "lwc-jest-fail-on-test-failure",
|
|
1572
|
+
"summary": "Exit non-zero when the LWC Jest tests (or their install) fail, failing the pipeline. By default failures are only logged.",
|
|
1573
|
+
"allowNo": false,
|
|
1574
|
+
"type": "boolean"
|
|
1575
|
+
}
|
|
1576
|
+
},
|
|
1577
|
+
"hasDynamicHelp": false,
|
|
1578
|
+
"hiddenAliases": [],
|
|
1579
|
+
"id": "simply:cicd:build:lwc-jest",
|
|
1580
|
+
"pluginAlias": "@simplysf/simply-cicd",
|
|
1581
|
+
"pluginName": "@simplysf/simply-cicd",
|
|
1582
|
+
"pluginType": "core",
|
|
1583
|
+
"strict": true,
|
|
1584
|
+
"summary": "Install the LWC Jest test libraries and run the project's LWC Jest tests with coverage.",
|
|
1585
|
+
"enableJsonFlag": true,
|
|
1586
|
+
"isESM": true,
|
|
1587
|
+
"relativePath": [
|
|
1588
|
+
"lib",
|
|
1589
|
+
"commands",
|
|
1590
|
+
"simply",
|
|
1591
|
+
"cicd",
|
|
1592
|
+
"build",
|
|
1593
|
+
"lwc-jest.js"
|
|
1594
|
+
],
|
|
1595
|
+
"aliasPermutations": [],
|
|
1596
|
+
"permutations": [
|
|
1597
|
+
"simply:cicd:build:lwc-jest",
|
|
1598
|
+
"cicd:simply:build:lwc-jest",
|
|
1599
|
+
"cicd:build:simply:lwc-jest",
|
|
1600
|
+
"cicd:build:lwc-jest:simply",
|
|
1601
|
+
"simply:build:cicd:lwc-jest",
|
|
1602
|
+
"build:simply:cicd:lwc-jest",
|
|
1603
|
+
"build:cicd:simply:lwc-jest",
|
|
1604
|
+
"build:cicd:lwc-jest:simply",
|
|
1605
|
+
"simply:build:lwc-jest:cicd",
|
|
1606
|
+
"build:simply:lwc-jest:cicd",
|
|
1607
|
+
"build:lwc-jest:simply:cicd",
|
|
1608
|
+
"build:lwc-jest:cicd:simply",
|
|
1609
|
+
"simply:cicd:lwc-jest:build",
|
|
1610
|
+
"cicd:simply:lwc-jest:build",
|
|
1611
|
+
"cicd:lwc-jest:simply:build",
|
|
1612
|
+
"cicd:lwc-jest:build:simply",
|
|
1613
|
+
"simply:lwc-jest:cicd:build",
|
|
1614
|
+
"lwc-jest:simply:cicd:build",
|
|
1615
|
+
"lwc-jest:cicd:simply:build",
|
|
1616
|
+
"lwc-jest:cicd:build:simply",
|
|
1617
|
+
"simply:lwc-jest:build:cicd",
|
|
1618
|
+
"lwc-jest:simply:build:cicd",
|
|
1619
|
+
"lwc-jest:build:simply:cicd",
|
|
1620
|
+
"lwc-jest:build:cicd:simply"
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
"simply:cicd:build:publish-utam-page-objects": {
|
|
1624
|
+
"aliases": [],
|
|
1625
|
+
"args": {},
|
|
1626
|
+
"description": "Gives every Salesforce Unlocked Package version a matching npm package of compiled UTAM page objects, so a UI-test suite can install exactly the page objects that describe the package version it is testing against.\n\nRuns after `build create-package-version`, whose `04t` it takes as input — from `--subscriber-package-version-id`, from `SUBSCRIBER_PACKAGE_VERSION_ID` in the environment (how a separate job receives that command's dotenv report), or from the dotenv file itself (how a later step in the same job sees it). It compiles every `**/__utam__/**/*.utam.json` under the default package directory with the UTAM compiler, in a staging directory outside the repo, and publishes the result.\n\nThe npm version is derived from the Salesforce version number the same way `sfdx-project.json` writes a dependency pin: `1.2.3.4` becomes `1.2.3-4`, with the git tag's suffix carried as a second prerelease identifier and as the dist-tag, so `1.2.3.4` built from a `beta` package branch is `1.2.3-4.beta` at `beta`, and a release build is `1.2.3-4` at `latest`.\n\nThe compiler is installed at run time rather than shipped with this plugin, so nothing is downloaded unless the command actually runs.\n\nSkips (without failing) when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`), when `--disabled` is passed, when no package version ID can be found, when the project authors no page objects, or when this exact version is already on the registry — which is what makes retrying a job that died after publishing succeed rather than fail on a version conflict. Any other failure fails the job: a missing page-object package would silently break every UI test pinned to that version.\n\nOn success, appends `UTAM_PAGE_OBJECTS_PACKAGE` and `UTAM_PAGE_OBJECTS_VERSION` to `--out`, so a downstream job can install the package without knowing the mapping rule.\n\nConfigure the package name, the compiler's type aliases, extra peer dependencies, and a project-owned compiler config under `plugins.simply.utam` in `sfdx-project.json`.",
|
|
1627
|
+
"examples": [
|
|
1628
|
+
"Publish page objects for the version this pipeline just created, reading its ID from the dotenv file:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub",
|
|
1629
|
+
"Publish to a GitLab project registry on a release-branch build:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub --ci-commit-ref-name release/1.2 --package-release-branch-prefix release/ --npm-registry https://gitlab.example.com/api/v4/projects/42/packages/npm/ --npm-token $CI_JOB_TOKEN",
|
|
1630
|
+
"Compile and pack without publishing, to inspect what would be produced:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --dry-run"
|
|
1631
|
+
],
|
|
1632
|
+
"flags": {
|
|
1633
|
+
"json": {
|
|
1634
|
+
"description": "Format output as json.",
|
|
1635
|
+
"helpGroup": "GLOBAL",
|
|
1636
|
+
"name": "json",
|
|
1637
|
+
"allowNo": false,
|
|
1638
|
+
"type": "boolean"
|
|
1639
|
+
},
|
|
1640
|
+
"flags-dir": {
|
|
1641
|
+
"helpGroup": "GLOBAL",
|
|
1642
|
+
"name": "flags-dir",
|
|
1643
|
+
"summary": "Import flag values from a directory.",
|
|
1622
1644
|
"hasDynamicHelp": false,
|
|
1623
1645
|
"multiple": false,
|
|
1624
|
-
"options": [
|
|
1625
|
-
"github",
|
|
1626
|
-
"gitlab"
|
|
1627
|
-
],
|
|
1628
1646
|
"type": "option"
|
|
1629
1647
|
},
|
|
1630
|
-
"
|
|
1631
|
-
"env": "
|
|
1632
|
-
"name": "
|
|
1633
|
-
"summary": "
|
|
1648
|
+
"debug": {
|
|
1649
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
1650
|
+
"name": "debug",
|
|
1651
|
+
"summary": "Enable verbose debug logging.",
|
|
1652
|
+
"allowNo": false,
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1655
|
+
"disabled": {
|
|
1656
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
1657
|
+
"name": "disabled",
|
|
1658
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1659
|
+
"allowNo": false,
|
|
1660
|
+
"type": "boolean"
|
|
1661
|
+
},
|
|
1662
|
+
"packaging-devhub": {
|
|
1663
|
+
"env": "SIMPLY_CICD_PACKAGING_DEVHUB",
|
|
1664
|
+
"name": "packaging-devhub",
|
|
1665
|
+
"required": true,
|
|
1666
|
+
"summary": "Alias of the Dev Hub that owns the package version. Must already be authenticated.",
|
|
1634
1667
|
"hasDynamicHelp": false,
|
|
1635
1668
|
"multiple": false,
|
|
1636
1669
|
"type": "option"
|
|
1637
1670
|
},
|
|
1638
|
-
"
|
|
1639
|
-
"
|
|
1640
|
-
"
|
|
1641
|
-
"summary": "GitLab only: internal ID of the merge request to post the diff to.",
|
|
1671
|
+
"subscriber-package-version-id": {
|
|
1672
|
+
"name": "subscriber-package-version-id",
|
|
1673
|
+
"summary": "Subscriber package version ID (04t) to publish page objects for. Falls back to SUBSCRIBER_PACKAGE_VERSION_ID in the environment, then to the same key in --env-file.",
|
|
1642
1674
|
"hasDynamicHelp": false,
|
|
1643
1675
|
"multiple": false,
|
|
1644
1676
|
"type": "option"
|
|
1645
1677
|
},
|
|
1646
|
-
"
|
|
1647
|
-
"env": "
|
|
1648
|
-
"name": "
|
|
1649
|
-
"summary": "
|
|
1678
|
+
"npm-package-name": {
|
|
1679
|
+
"env": "SIMPLY_CICD_NPM_PACKAGE_NAME",
|
|
1680
|
+
"name": "npm-package-name",
|
|
1681
|
+
"summary": "npm package name to publish the page objects under. Required unless `plugins.simply.utam.packageName` is set in sfdx-project.json; the flag wins when both are present.",
|
|
1650
1682
|
"hasDynamicHelp": false,
|
|
1651
1683
|
"multiple": false,
|
|
1652
1684
|
"type": "option"
|
|
1653
1685
|
},
|
|
1654
|
-
"
|
|
1655
|
-
"env": "
|
|
1656
|
-
"name": "
|
|
1657
|
-
"summary": "
|
|
1686
|
+
"npm-registry": {
|
|
1687
|
+
"env": "SIMPLY_CICD_NPM_REGISTRY",
|
|
1688
|
+
"name": "npm-registry",
|
|
1689
|
+
"summary": "Registry to publish to. Defaults to whatever npm itself is configured to use.",
|
|
1658
1690
|
"hasDynamicHelp": false,
|
|
1659
1691
|
"multiple": false,
|
|
1660
1692
|
"type": "option"
|
|
1661
1693
|
},
|
|
1662
|
-
"
|
|
1663
|
-
"env": "
|
|
1664
|
-
"name": "
|
|
1665
|
-
"summary": "
|
|
1694
|
+
"npm-token": {
|
|
1695
|
+
"env": "SIMPLY_CICD_NPM_TOKEN",
|
|
1696
|
+
"name": "npm-token",
|
|
1697
|
+
"summary": "Auth token for the registry. Written to an .npmrc inside the staging directory only — the repo's own .npmrc is never touched.",
|
|
1666
1698
|
"hasDynamicHelp": false,
|
|
1667
1699
|
"multiple": false,
|
|
1668
1700
|
"type": "option"
|
|
1669
1701
|
},
|
|
1670
|
-
"
|
|
1671
|
-
"env": "
|
|
1672
|
-
"name": "
|
|
1673
|
-
"summary": "
|
|
1702
|
+
"npm-access": {
|
|
1703
|
+
"env": "SIMPLY_CICD_NPM_ACCESS",
|
|
1704
|
+
"name": "npm-access",
|
|
1705
|
+
"summary": "Passed through to npm publish --access. Needed on npmjs.com to publish a scoped package publicly.",
|
|
1674
1706
|
"hasDynamicHelp": false,
|
|
1675
1707
|
"multiple": false,
|
|
1708
|
+
"options": [
|
|
1709
|
+
"public",
|
|
1710
|
+
"restricted"
|
|
1711
|
+
],
|
|
1676
1712
|
"type": "option"
|
|
1677
1713
|
},
|
|
1678
|
-
"
|
|
1679
|
-
"
|
|
1680
|
-
"
|
|
1681
|
-
"summary": "Commit SHA to attribute the posted diff to.",
|
|
1714
|
+
"npm-dist-tag": {
|
|
1715
|
+
"name": "npm-dist-tag",
|
|
1716
|
+
"summary": "Dist-tag to publish under, overriding the one derived from the git tag's suffix.",
|
|
1682
1717
|
"hasDynamicHelp": false,
|
|
1683
1718
|
"multiple": false,
|
|
1684
1719
|
"type": "option"
|
|
1685
1720
|
},
|
|
1686
|
-
"
|
|
1687
|
-
"
|
|
1688
|
-
"
|
|
1689
|
-
"summary": "
|
|
1721
|
+
"ci-commit-ref-name": {
|
|
1722
|
+
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
1723
|
+
"name": "ci-commit-ref-name",
|
|
1724
|
+
"summary": "Git branch or ref name being built. With --package-release-branch-prefix, reproduces the suffix `create-package-version` put on the git tag, so the npm version mirrors it.",
|
|
1690
1725
|
"hasDynamicHelp": false,
|
|
1691
1726
|
"multiple": false,
|
|
1692
1727
|
"type": "option"
|
|
1693
1728
|
},
|
|
1694
|
-
"
|
|
1695
|
-
"name": "
|
|
1696
|
-
"
|
|
1697
|
-
"summary": "Head commit SHA to diff to.",
|
|
1729
|
+
"package-release-branch-prefix": {
|
|
1730
|
+
"name": "package-release-branch-prefix",
|
|
1731
|
+
"summary": "Prefix identifying release branches. Determines whether the npm version and dist-tag carry a branch suffix.",
|
|
1698
1732
|
"hasDynamicHelp": false,
|
|
1699
1733
|
"multiple": false,
|
|
1700
1734
|
"type": "option"
|
|
1701
1735
|
},
|
|
1702
|
-
"
|
|
1703
|
-
"env": "
|
|
1704
|
-
"name": "
|
|
1705
|
-
"
|
|
1706
|
-
"
|
|
1736
|
+
"utam-version": {
|
|
1737
|
+
"env": "SIMPLY_CICD_UTAM_VERSION",
|
|
1738
|
+
"name": "utam-version",
|
|
1739
|
+
"summary": "npm version spec of the UTAM compiler to install and compile with.",
|
|
1740
|
+
"default": "^3",
|
|
1707
1741
|
"hasDynamicHelp": false,
|
|
1708
1742
|
"multiple": false,
|
|
1709
1743
|
"type": "option"
|
|
1710
1744
|
},
|
|
1745
|
+
"dry-run": {
|
|
1746
|
+
"name": "dry-run",
|
|
1747
|
+
"summary": "Compile and pack the package without publishing it, copying the tarball into the project directory.",
|
|
1748
|
+
"allowNo": false,
|
|
1749
|
+
"type": "boolean"
|
|
1750
|
+
},
|
|
1711
1751
|
"out": {
|
|
1712
1752
|
"name": "out",
|
|
1713
|
-
"summary": "
|
|
1753
|
+
"summary": "Dotenv file to append the published package name and version to.",
|
|
1754
|
+
"default": "subscriberPackageVersionId.env",
|
|
1714
1755
|
"hasDynamicHelp": false,
|
|
1715
1756
|
"multiple": false,
|
|
1716
1757
|
"type": "option"
|
|
1717
1758
|
},
|
|
1718
|
-
"
|
|
1719
|
-
"
|
|
1720
|
-
"
|
|
1721
|
-
"
|
|
1722
|
-
"
|
|
1723
|
-
"
|
|
1724
|
-
|
|
1725
|
-
"disabled": {
|
|
1726
|
-
"env": "SIMPLY_CICD_DISABLED",
|
|
1727
|
-
"name": "disabled",
|
|
1728
|
-
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1729
|
-
"allowNo": false,
|
|
1730
|
-
"type": "boolean"
|
|
1759
|
+
"env-file": {
|
|
1760
|
+
"name": "env-file",
|
|
1761
|
+
"summary": "Dotenv file to read SUBSCRIBER_PACKAGE_VERSION_ID from when it isn't passed as a flag or set in the environment.",
|
|
1762
|
+
"default": "subscriberPackageVersionId.env",
|
|
1763
|
+
"hasDynamicHelp": false,
|
|
1764
|
+
"multiple": false,
|
|
1765
|
+
"type": "option"
|
|
1731
1766
|
}
|
|
1732
1767
|
},
|
|
1733
1768
|
"hasDynamicHelp": false,
|
|
1734
1769
|
"hiddenAliases": [],
|
|
1735
|
-
"id": "simply:cicd:build:
|
|
1770
|
+
"id": "simply:cicd:build:publish-utam-page-objects",
|
|
1736
1771
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1737
1772
|
"pluginName": "@simplysf/simply-cicd",
|
|
1738
1773
|
"pluginType": "core",
|
|
1739
1774
|
"strict": true,
|
|
1740
|
-
"summary": "
|
|
1775
|
+
"summary": "Compile the project's UTAM page objects for a package version and publish them to an npm registry.",
|
|
1741
1776
|
"enableJsonFlag": true,
|
|
1742
1777
|
"isESM": true,
|
|
1743
1778
|
"relativePath": [
|
|
@@ -1746,43 +1781,42 @@
|
|
|
1746
1781
|
"simply",
|
|
1747
1782
|
"cicd",
|
|
1748
1783
|
"build",
|
|
1749
|
-
"
|
|
1784
|
+
"publish-utam-page-objects.js"
|
|
1750
1785
|
],
|
|
1751
1786
|
"aliasPermutations": [],
|
|
1752
1787
|
"permutations": [
|
|
1753
|
-
"simply:cicd:build:
|
|
1754
|
-
"cicd:simply:build:
|
|
1755
|
-
"cicd:build:simply:
|
|
1756
|
-
"cicd:build:
|
|
1757
|
-
"simply:build:cicd:
|
|
1758
|
-
"build:simply:cicd:
|
|
1759
|
-
"build:cicd:simply:
|
|
1760
|
-
"build:cicd:
|
|
1761
|
-
"simply:build:
|
|
1762
|
-
"build:simply:
|
|
1763
|
-
"build:
|
|
1764
|
-
"build:
|
|
1765
|
-
"simply:cicd:
|
|
1766
|
-
"cicd:simply:
|
|
1767
|
-
"cicd:
|
|
1768
|
-
"cicd:
|
|
1769
|
-
"simply:
|
|
1770
|
-
"
|
|
1771
|
-
"
|
|
1772
|
-
"
|
|
1773
|
-
"simply:
|
|
1774
|
-
"
|
|
1775
|
-
"
|
|
1776
|
-
"
|
|
1788
|
+
"simply:cicd:build:publish-utam-page-objects",
|
|
1789
|
+
"cicd:simply:build:publish-utam-page-objects",
|
|
1790
|
+
"cicd:build:simply:publish-utam-page-objects",
|
|
1791
|
+
"cicd:build:publish-utam-page-objects:simply",
|
|
1792
|
+
"simply:build:cicd:publish-utam-page-objects",
|
|
1793
|
+
"build:simply:cicd:publish-utam-page-objects",
|
|
1794
|
+
"build:cicd:simply:publish-utam-page-objects",
|
|
1795
|
+
"build:cicd:publish-utam-page-objects:simply",
|
|
1796
|
+
"simply:build:publish-utam-page-objects:cicd",
|
|
1797
|
+
"build:simply:publish-utam-page-objects:cicd",
|
|
1798
|
+
"build:publish-utam-page-objects:simply:cicd",
|
|
1799
|
+
"build:publish-utam-page-objects:cicd:simply",
|
|
1800
|
+
"simply:cicd:publish-utam-page-objects:build",
|
|
1801
|
+
"cicd:simply:publish-utam-page-objects:build",
|
|
1802
|
+
"cicd:publish-utam-page-objects:simply:build",
|
|
1803
|
+
"cicd:publish-utam-page-objects:build:simply",
|
|
1804
|
+
"simply:publish-utam-page-objects:cicd:build",
|
|
1805
|
+
"publish-utam-page-objects:simply:cicd:build",
|
|
1806
|
+
"publish-utam-page-objects:cicd:simply:build",
|
|
1807
|
+
"publish-utam-page-objects:cicd:build:simply",
|
|
1808
|
+
"simply:publish-utam-page-objects:build:cicd",
|
|
1809
|
+
"publish-utam-page-objects:simply:build:cicd",
|
|
1810
|
+
"publish-utam-page-objects:build:simply:cicd",
|
|
1811
|
+
"publish-utam-page-objects:build:cicd:simply"
|
|
1777
1812
|
]
|
|
1778
1813
|
},
|
|
1779
|
-
"simply:cicd:build:
|
|
1814
|
+
"simply:cicd:build:push-scratch": {
|
|
1780
1815
|
"aliases": [],
|
|
1781
1816
|
"args": {},
|
|
1782
|
-
"description": "
|
|
1817
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, strips metadata types the scratch org push doesn't support (Einstein Conversation Agent file types), and runs `sf project deploy start`. When `--scratch-org-source-dir` is given, also deploys the default package directory's `seedMetadata.path`, if declared in `sfdx-project.json`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1783
1818
|
"examples": [
|
|
1784
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1785
|
-
"<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
|
|
1819
|
+
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1786
1820
|
],
|
|
1787
1821
|
"flags": {
|
|
1788
1822
|
"json": {
|
|
@@ -1800,138 +1834,50 @@
|
|
|
1800
1834
|
"multiple": false,
|
|
1801
1835
|
"type": "option"
|
|
1802
1836
|
},
|
|
1803
|
-
"
|
|
1804
|
-
"env": "
|
|
1805
|
-
"name": "
|
|
1806
|
-
"summary": "
|
|
1807
|
-
"hasDynamicHelp": false,
|
|
1808
|
-
"multiple": false,
|
|
1809
|
-
"type": "option"
|
|
1810
|
-
},
|
|
1811
|
-
"vcs-provider": {
|
|
1812
|
-
"env": "SIMPLY_CICD_VCS_PROVIDER",
|
|
1813
|
-
"name": "vcs-provider",
|
|
1814
|
-
"summary": "The VCS platform hosting this project.",
|
|
1815
|
-
"default": "gitlab",
|
|
1837
|
+
"jwt-key-file": {
|
|
1838
|
+
"env": "SIMPLY_CICD_JWT_KEY_FILE",
|
|
1839
|
+
"name": "jwt-key-file",
|
|
1840
|
+
"summary": "Path to the JWT private key file used to re-authenticate the scratch org (or its Dev Hub) when it was JWT-authenticated. Not needed when the Dev Hub was authenticated via web login or an SFDX auth URL — the scratch org's own refresh token is used instead.",
|
|
1816
1841
|
"hasDynamicHelp": false,
|
|
1817
1842
|
"multiple": false,
|
|
1818
|
-
"options": [
|
|
1819
|
-
"github",
|
|
1820
|
-
"gitlab"
|
|
1821
|
-
],
|
|
1822
1843
|
"type": "option"
|
|
1823
1844
|
},
|
|
1824
|
-
"
|
|
1825
|
-
"env": "
|
|
1826
|
-
"name": "
|
|
1827
|
-
"summary": "
|
|
1828
|
-
"
|
|
1829
|
-
"
|
|
1830
|
-
"type": "option"
|
|
1845
|
+
"debug": {
|
|
1846
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
1847
|
+
"name": "debug",
|
|
1848
|
+
"summary": "Enable verbose debug logging.",
|
|
1849
|
+
"allowNo": false,
|
|
1850
|
+
"type": "boolean"
|
|
1831
1851
|
},
|
|
1832
|
-
"
|
|
1833
|
-
"env": "
|
|
1834
|
-
"name": "
|
|
1835
|
-
"summary": "
|
|
1836
|
-
"
|
|
1837
|
-
"
|
|
1838
|
-
"type": "option"
|
|
1852
|
+
"disabled": {
|
|
1853
|
+
"env": "SIMPLY_CICD_DISABLED",
|
|
1854
|
+
"name": "disabled",
|
|
1855
|
+
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1856
|
+
"allowNo": false,
|
|
1857
|
+
"type": "boolean"
|
|
1839
1858
|
},
|
|
1840
|
-
"
|
|
1841
|
-
"
|
|
1842
|
-
"
|
|
1843
|
-
"
|
|
1844
|
-
"
|
|
1845
|
-
"multiple": false,
|
|
1846
|
-
"type": "option"
|
|
1859
|
+
"ignore-warnings": {
|
|
1860
|
+
"name": "ignore-warnings",
|
|
1861
|
+
"summary": "Append --ignore-warnings to the underlying sf project deploy start call.",
|
|
1862
|
+
"allowNo": false,
|
|
1863
|
+
"type": "boolean"
|
|
1847
1864
|
},
|
|
1848
|
-
"
|
|
1849
|
-
"
|
|
1850
|
-
"
|
|
1851
|
-
"summary": "GitHub only: number of the pull request to post the diff to.",
|
|
1865
|
+
"scratch-org-source-dir": {
|
|
1866
|
+
"name": "scratch-org-source-dir",
|
|
1867
|
+
"summary": "Source directory to push to the scratch org, in addition to the default package directory.",
|
|
1852
1868
|
"hasDynamicHelp": false,
|
|
1853
1869
|
"multiple": false,
|
|
1854
1870
|
"type": "option"
|
|
1855
|
-
},
|
|
1856
|
-
"ci-run-id": {
|
|
1857
|
-
"env": "SIMPLY_CICD_CI_RUN_ID",
|
|
1858
|
-
"name": "ci-run-id",
|
|
1859
|
-
"summary": "GitHub only: Actions run ID, used to build links back to the run's artifacts.",
|
|
1860
|
-
"hasDynamicHelp": false,
|
|
1861
|
-
"multiple": false,
|
|
1862
|
-
"type": "option"
|
|
1863
|
-
},
|
|
1864
|
-
"ci-server-url": {
|
|
1865
|
-
"env": "SIMPLY_CICD_CI_SERVER_URL",
|
|
1866
|
-
"name": "ci-server-url",
|
|
1867
|
-
"summary": "GitHub only: server URL, for instances other than github.com.",
|
|
1868
|
-
"hasDynamicHelp": false,
|
|
1869
|
-
"multiple": false,
|
|
1870
|
-
"type": "option"
|
|
1871
|
-
},
|
|
1872
|
-
"ci-commit-sha": {
|
|
1873
|
-
"env": "SIMPLY_CICD_CI_COMMIT_SHA",
|
|
1874
|
-
"name": "ci-commit-sha",
|
|
1875
|
-
"summary": "Commit SHA to attribute the posted diff to.",
|
|
1876
|
-
"hasDynamicHelp": false,
|
|
1877
|
-
"multiple": false,
|
|
1878
|
-
"type": "option"
|
|
1879
|
-
},
|
|
1880
|
-
"from": {
|
|
1881
|
-
"name": "from",
|
|
1882
|
-
"required": true,
|
|
1883
|
-
"summary": "Base commit SHA to diff from.",
|
|
1884
|
-
"hasDynamicHelp": false,
|
|
1885
|
-
"multiple": false,
|
|
1886
|
-
"type": "option"
|
|
1887
|
-
},
|
|
1888
|
-
"to": {
|
|
1889
|
-
"name": "to",
|
|
1890
|
-
"required": true,
|
|
1891
|
-
"summary": "Head commit SHA to diff to.",
|
|
1892
|
-
"hasDynamicHelp": false,
|
|
1893
|
-
"multiple": false,
|
|
1894
|
-
"type": "option"
|
|
1895
|
-
},
|
|
1896
|
-
"project-access-token": {
|
|
1897
|
-
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
1898
|
-
"name": "project-access-token",
|
|
1899
|
-
"required": true,
|
|
1900
|
-
"summary": "Project access token used to post the diff results back to the merge request.",
|
|
1901
|
-
"hasDynamicHelp": false,
|
|
1902
|
-
"multiple": false,
|
|
1903
|
-
"type": "option"
|
|
1904
|
-
},
|
|
1905
|
-
"out": {
|
|
1906
|
-
"name": "out",
|
|
1907
|
-
"summary": "Output directory or file path for the delta results.",
|
|
1908
|
-
"hasDynamicHelp": false,
|
|
1909
|
-
"multiple": false,
|
|
1910
|
-
"type": "option"
|
|
1911
|
-
},
|
|
1912
|
-
"debug": {
|
|
1913
|
-
"env": "SIMPLY_CICD_DEBUG",
|
|
1914
|
-
"name": "debug",
|
|
1915
|
-
"summary": "Enable verbose debug logging.",
|
|
1916
|
-
"allowNo": false,
|
|
1917
|
-
"type": "boolean"
|
|
1918
|
-
},
|
|
1919
|
-
"disabled": {
|
|
1920
|
-
"env": "SIMPLY_CICD_DISABLED",
|
|
1921
|
-
"name": "disabled",
|
|
1922
|
-
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
1923
|
-
"allowNo": false,
|
|
1924
|
-
"type": "boolean"
|
|
1925
1871
|
}
|
|
1926
1872
|
},
|
|
1927
1873
|
"hasDynamicHelp": false,
|
|
1928
1874
|
"hiddenAliases": [],
|
|
1929
|
-
"id": "simply:cicd:build:
|
|
1875
|
+
"id": "simply:cicd:build:push-scratch",
|
|
1930
1876
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
1931
1877
|
"pluginName": "@simplysf/simply-cicd",
|
|
1932
1878
|
"pluginType": "core",
|
|
1933
1879
|
"strict": true,
|
|
1934
|
-
"summary": "
|
|
1880
|
+
"summary": "Push source to the scratch org created by `build create-scratch`.",
|
|
1935
1881
|
"enableJsonFlag": true,
|
|
1936
1882
|
"isESM": true,
|
|
1937
1883
|
"relativePath": [
|
|
@@ -1940,40 +1886,40 @@
|
|
|
1940
1886
|
"simply",
|
|
1941
1887
|
"cicd",
|
|
1942
1888
|
"build",
|
|
1943
|
-
"
|
|
1889
|
+
"push-scratch.js"
|
|
1944
1890
|
],
|
|
1945
1891
|
"aliasPermutations": [],
|
|
1946
1892
|
"permutations": [
|
|
1947
|
-
"simply:cicd:build:
|
|
1948
|
-
"cicd:simply:build:
|
|
1949
|
-
"cicd:build:simply:
|
|
1950
|
-
"cicd:build:
|
|
1951
|
-
"simply:build:cicd:
|
|
1952
|
-
"build:simply:cicd:
|
|
1953
|
-
"build:cicd:simply:
|
|
1954
|
-
"build:cicd:
|
|
1955
|
-
"simply:build:
|
|
1956
|
-
"build:simply:
|
|
1957
|
-
"build:
|
|
1958
|
-
"build:
|
|
1959
|
-
"simply:cicd:
|
|
1960
|
-
"cicd:simply:
|
|
1961
|
-
"cicd:
|
|
1962
|
-
"cicd:
|
|
1963
|
-
"simply:
|
|
1964
|
-
"
|
|
1965
|
-
"
|
|
1966
|
-
"
|
|
1967
|
-
"simply:
|
|
1968
|
-
"
|
|
1969
|
-
"
|
|
1970
|
-
"
|
|
1893
|
+
"simply:cicd:build:push-scratch",
|
|
1894
|
+
"cicd:simply:build:push-scratch",
|
|
1895
|
+
"cicd:build:simply:push-scratch",
|
|
1896
|
+
"cicd:build:push-scratch:simply",
|
|
1897
|
+
"simply:build:cicd:push-scratch",
|
|
1898
|
+
"build:simply:cicd:push-scratch",
|
|
1899
|
+
"build:cicd:simply:push-scratch",
|
|
1900
|
+
"build:cicd:push-scratch:simply",
|
|
1901
|
+
"simply:build:push-scratch:cicd",
|
|
1902
|
+
"build:simply:push-scratch:cicd",
|
|
1903
|
+
"build:push-scratch:simply:cicd",
|
|
1904
|
+
"build:push-scratch:cicd:simply",
|
|
1905
|
+
"simply:cicd:push-scratch:build",
|
|
1906
|
+
"cicd:simply:push-scratch:build",
|
|
1907
|
+
"cicd:push-scratch:simply:build",
|
|
1908
|
+
"cicd:push-scratch:build:simply",
|
|
1909
|
+
"simply:push-scratch:cicd:build",
|
|
1910
|
+
"push-scratch:simply:cicd:build",
|
|
1911
|
+
"push-scratch:cicd:simply:build",
|
|
1912
|
+
"push-scratch:cicd:build:simply",
|
|
1913
|
+
"simply:push-scratch:build:cicd",
|
|
1914
|
+
"push-scratch:simply:build:cicd",
|
|
1915
|
+
"push-scratch:build:simply:cicd",
|
|
1916
|
+
"push-scratch:build:cicd:simply"
|
|
1971
1917
|
]
|
|
1972
1918
|
},
|
|
1973
|
-
"simply:cicd:build:
|
|
1919
|
+
"simply:cicd:build:test-scratch": {
|
|
1974
1920
|
"aliases": [],
|
|
1975
1921
|
"args": {},
|
|
1976
|
-
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and
|
|
1922
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and runs its Apex tests with `RunLocalTests`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1977
1923
|
"examples": [
|
|
1978
1924
|
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1979
1925
|
],
|
|
@@ -2015,42 +1961,21 @@
|
|
|
2015
1961
|
"allowNo": false,
|
|
2016
1962
|
"type": "boolean"
|
|
2017
1963
|
},
|
|
2018
|
-
"
|
|
2019
|
-
"name": "
|
|
2020
|
-
"summary": "
|
|
2021
|
-
"
|
|
2022
|
-
"
|
|
2023
|
-
"multiple": false,
|
|
2024
|
-
"options": [
|
|
2025
|
-
"All",
|
|
2026
|
-
"Delta",
|
|
2027
|
-
"Upgrade"
|
|
2028
|
-
],
|
|
2029
|
-
"type": "option"
|
|
2030
|
-
},
|
|
2031
|
-
"upgrade-type": {
|
|
2032
|
-
"description": "For package upgrades, specifies whether to mark all removed components as deprecated (DeprecateOnly), to delete removed components that can be safely deleted and deprecate the others (Mixed), or to delete all removed components, except for custom objects and custom fields, that don't have dependencies (Delete). The default is Mixed. DeprecateOnly and Delete only apply to unlocked package upgrades. Delete is not confirmed first: like every other prompt in a pipeline, it is auto-approved.",
|
|
2033
|
-
"name": "upgrade-type",
|
|
2034
|
-
"summary": "Upgrade type for the dependency installs; available only for unlocked packages.",
|
|
2035
|
-
"default": "Mixed",
|
|
2036
|
-
"hasDynamicHelp": false,
|
|
2037
|
-
"multiple": false,
|
|
2038
|
-
"options": [
|
|
2039
|
-
"DeprecateOnly",
|
|
2040
|
-
"Mixed",
|
|
2041
|
-
"Delete"
|
|
2042
|
-
],
|
|
2043
|
-
"type": "option"
|
|
1964
|
+
"disable-apex-tests": {
|
|
1965
|
+
"name": "disable-apex-tests",
|
|
1966
|
+
"summary": "Skip running Apex tests, without skipping the rest of the job.",
|
|
1967
|
+
"allowNo": false,
|
|
1968
|
+
"type": "boolean"
|
|
2044
1969
|
}
|
|
2045
1970
|
},
|
|
2046
1971
|
"hasDynamicHelp": false,
|
|
2047
1972
|
"hiddenAliases": [],
|
|
2048
|
-
"id": "simply:cicd:build:
|
|
1973
|
+
"id": "simply:cicd:build:test-scratch",
|
|
2049
1974
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
2050
1975
|
"pluginName": "@simplysf/simply-cicd",
|
|
2051
1976
|
"pluginType": "core",
|
|
2052
1977
|
"strict": true,
|
|
2053
|
-
"summary": "
|
|
1978
|
+
"summary": "Run Apex tests against the scratch org created by `build create-scratch`.",
|
|
2054
1979
|
"enableJsonFlag": true,
|
|
2055
1980
|
"isESM": true,
|
|
2056
1981
|
"relativePath": [
|
|
@@ -2059,42 +1984,43 @@
|
|
|
2059
1984
|
"simply",
|
|
2060
1985
|
"cicd",
|
|
2061
1986
|
"build",
|
|
2062
|
-
"
|
|
1987
|
+
"test-scratch.js"
|
|
2063
1988
|
],
|
|
2064
1989
|
"aliasPermutations": [],
|
|
2065
1990
|
"permutations": [
|
|
2066
|
-
"simply:cicd:build:
|
|
2067
|
-
"cicd:simply:build:
|
|
2068
|
-
"cicd:build:simply:
|
|
2069
|
-
"cicd:build:
|
|
2070
|
-
"simply:build:cicd:
|
|
2071
|
-
"build:simply:cicd:
|
|
2072
|
-
"build:cicd:simply:
|
|
2073
|
-
"build:cicd:
|
|
2074
|
-
"simply:build:
|
|
2075
|
-
"build:simply:
|
|
2076
|
-
"build:
|
|
2077
|
-
"build:
|
|
2078
|
-
"simply:cicd:
|
|
2079
|
-
"cicd:simply:
|
|
2080
|
-
"cicd:
|
|
2081
|
-
"cicd:
|
|
2082
|
-
"simply:
|
|
2083
|
-
"
|
|
2084
|
-
"
|
|
2085
|
-
"
|
|
2086
|
-
"simply:
|
|
2087
|
-
"
|
|
2088
|
-
"
|
|
2089
|
-
"
|
|
1991
|
+
"simply:cicd:build:test-scratch",
|
|
1992
|
+
"cicd:simply:build:test-scratch",
|
|
1993
|
+
"cicd:build:simply:test-scratch",
|
|
1994
|
+
"cicd:build:test-scratch:simply",
|
|
1995
|
+
"simply:build:cicd:test-scratch",
|
|
1996
|
+
"build:simply:cicd:test-scratch",
|
|
1997
|
+
"build:cicd:simply:test-scratch",
|
|
1998
|
+
"build:cicd:test-scratch:simply",
|
|
1999
|
+
"simply:build:test-scratch:cicd",
|
|
2000
|
+
"build:simply:test-scratch:cicd",
|
|
2001
|
+
"build:test-scratch:simply:cicd",
|
|
2002
|
+
"build:test-scratch:cicd:simply",
|
|
2003
|
+
"simply:cicd:test-scratch:build",
|
|
2004
|
+
"cicd:simply:test-scratch:build",
|
|
2005
|
+
"cicd:test-scratch:simply:build",
|
|
2006
|
+
"cicd:test-scratch:build:simply",
|
|
2007
|
+
"simply:test-scratch:cicd:build",
|
|
2008
|
+
"test-scratch:simply:cicd:build",
|
|
2009
|
+
"test-scratch:cicd:simply:build",
|
|
2010
|
+
"test-scratch:cicd:build:simply",
|
|
2011
|
+
"simply:test-scratch:build:cicd",
|
|
2012
|
+
"test-scratch:simply:build:cicd",
|
|
2013
|
+
"test-scratch:build:simply:cicd",
|
|
2014
|
+
"test-scratch:build:cicd:simply"
|
|
2090
2015
|
]
|
|
2091
2016
|
},
|
|
2092
|
-
"simply:cicd:build
|
|
2017
|
+
"simply:cicd:notify:build": {
|
|
2093
2018
|
"aliases": [],
|
|
2094
2019
|
"args": {},
|
|
2095
|
-
"description": "
|
|
2020
|
+
"description": "Run in every build job's `after_script`. Which card it posts depends on `--ci-job-status`:\n\n- `failed`: a failure card with the job, stage, branch, and pipeline, whichever build job failed.\n- `success`: a package version card, but only when the job created a package version. The card shows the new version tag, its `04t` ID, and the issue references in the commits since the previous version tag. Every other successful job sends nothing.\n- Anything else (e.g. `canceled`): nothing.\n\nThe `04t` ID comes from `--subscriber-package-version-id`, or else from the `subscriberPackageVersionId.env` file that `build create-package-version` writes to the working directory. The new version's tag is the tag at `HEAD` annotated with that ID. The previous version's tag is the nearest earlier tag in the project's version tag format (`plugins.simply.versionTagFormat` or `SIMPLY_CICD_VERSION_TAG_FORMAT`). The command fetches tags, and the full history when the clone is shallow. If a tag or the history can't be found, the card shows `N/A` instead of failing the job.",
|
|
2096
2021
|
"examples": [
|
|
2097
|
-
"<%= config.bin %> <%= command.id %>"
|
|
2022
|
+
"Post a card from a build job's after_script; it only sends one when the job failed or created a package version:\n<%= config.bin %> <%= command.id %> --ci-job-name push-scratch --ci-job-status \"$CI_JOB_STATUS\" --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
|
|
2023
|
+
"Announce a package version with linked Jira stories:\n<%= config.bin %> <%= command.id %> --ci-job-status success --alm-base-url https://jira.example.com/browse --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
2098
2024
|
],
|
|
2099
2025
|
"flags": {
|
|
2100
2026
|
"json": {
|
|
@@ -2112,75 +2038,174 @@
|
|
|
2112
2038
|
"multiple": false,
|
|
2113
2039
|
"type": "option"
|
|
2114
2040
|
},
|
|
2115
|
-
"
|
|
2116
|
-
"env": "
|
|
2117
|
-
"name": "
|
|
2118
|
-
"summary": "
|
|
2119
|
-
"
|
|
2120
|
-
"
|
|
2041
|
+
"ci-commit-ref-name": {
|
|
2042
|
+
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
2043
|
+
"name": "ci-commit-ref-name",
|
|
2044
|
+
"summary": "The git branch or tag ref for this pipeline run.",
|
|
2045
|
+
"hasDynamicHelp": false,
|
|
2046
|
+
"multiple": false,
|
|
2047
|
+
"type": "option"
|
|
2121
2048
|
},
|
|
2122
|
-
"
|
|
2123
|
-
"env": "
|
|
2124
|
-
"name": "
|
|
2125
|
-
"summary": "
|
|
2126
|
-
"
|
|
2127
|
-
"
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
"
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
"
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
"
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
"
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2049
|
+
"ci-job-name": {
|
|
2050
|
+
"env": "SIMPLY_CICD_CI_JOB_NAME",
|
|
2051
|
+
"name": "ci-job-name",
|
|
2052
|
+
"summary": "The name of the current CI job.",
|
|
2053
|
+
"hasDynamicHelp": false,
|
|
2054
|
+
"multiple": false,
|
|
2055
|
+
"type": "option"
|
|
2056
|
+
},
|
|
2057
|
+
"ci-job-stage": {
|
|
2058
|
+
"env": "SIMPLY_CICD_CI_JOB_STAGE",
|
|
2059
|
+
"name": "ci-job-stage",
|
|
2060
|
+
"summary": "The stage of the current CI job.",
|
|
2061
|
+
"hasDynamicHelp": false,
|
|
2062
|
+
"multiple": false,
|
|
2063
|
+
"type": "option"
|
|
2064
|
+
},
|
|
2065
|
+
"ci-job-status": {
|
|
2066
|
+
"env": "SIMPLY_CICD_CI_JOB_STATUS",
|
|
2067
|
+
"name": "ci-job-status",
|
|
2068
|
+
"summary": "The status of the current CI job (e.g. success, failed, canceled).",
|
|
2069
|
+
"hasDynamicHelp": false,
|
|
2070
|
+
"multiple": false,
|
|
2071
|
+
"type": "option"
|
|
2072
|
+
},
|
|
2073
|
+
"ci-pipeline-id": {
|
|
2074
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_ID",
|
|
2075
|
+
"name": "ci-pipeline-id",
|
|
2076
|
+
"summary": "The ID of the current CI pipeline.",
|
|
2077
|
+
"hasDynamicHelp": false,
|
|
2078
|
+
"multiple": false,
|
|
2079
|
+
"type": "option"
|
|
2080
|
+
},
|
|
2081
|
+
"ci-pipeline-url": {
|
|
2082
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_URL",
|
|
2083
|
+
"name": "ci-pipeline-url",
|
|
2084
|
+
"summary": "The URL of the current CI pipeline.",
|
|
2085
|
+
"hasDynamicHelp": false,
|
|
2086
|
+
"multiple": false,
|
|
2087
|
+
"type": "option"
|
|
2088
|
+
},
|
|
2089
|
+
"ci-project-title": {
|
|
2090
|
+
"env": "SIMPLY_CICD_CI_PROJECT_TITLE",
|
|
2091
|
+
"name": "ci-project-title",
|
|
2092
|
+
"summary": "The project title shown in the notification card's heading.",
|
|
2093
|
+
"hasDynamicHelp": false,
|
|
2094
|
+
"multiple": false,
|
|
2095
|
+
"type": "option"
|
|
2096
|
+
},
|
|
2097
|
+
"subscriber-package-version-id": {
|
|
2098
|
+
"env": "SIMPLY_CICD_SUBSCRIBER_PACKAGE_VERSION_ID",
|
|
2099
|
+
"name": "subscriber-package-version-id",
|
|
2100
|
+
"summary": "The subscriber package version ID (04t...) created by this job. Defaults to the one in subscriberPackageVersionId.env, written by build create-package-version.",
|
|
2101
|
+
"hasDynamicHelp": false,
|
|
2102
|
+
"multiple": false,
|
|
2103
|
+
"type": "option"
|
|
2104
|
+
},
|
|
2105
|
+
"enabled": {
|
|
2106
|
+
"env": "SIMPLY_CICD_ENABLED",
|
|
2107
|
+
"name": "enabled",
|
|
2108
|
+
"summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
|
|
2109
|
+
"allowNo": false,
|
|
2110
|
+
"type": "boolean"
|
|
2111
|
+
},
|
|
2112
|
+
"alm-base-url": {
|
|
2113
|
+
"env": "SIMPLY_CICD_ALM_BASE_URL",
|
|
2114
|
+
"name": "alm-base-url",
|
|
2115
|
+
"summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
|
|
2116
|
+
"hasDynamicHelp": false,
|
|
2117
|
+
"multiple": false,
|
|
2118
|
+
"type": "option"
|
|
2119
|
+
},
|
|
2120
|
+
"alm-project-key": {
|
|
2121
|
+
"env": "SIMPLY_CICD_ALM_PROJECT_KEY",
|
|
2122
|
+
"name": "alm-project-key",
|
|
2123
|
+
"summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
|
|
2124
|
+
"hasDynamicHelp": false,
|
|
2125
|
+
"multiple": false,
|
|
2126
|
+
"type": "option"
|
|
2127
|
+
},
|
|
2128
|
+
"alm-provider": {
|
|
2129
|
+
"env": "SIMPLY_CICD_ALM_PROVIDER",
|
|
2130
|
+
"name": "alm-provider",
|
|
2131
|
+
"summary": "The issue tracker whose reference format to look for in commit messages.",
|
|
2132
|
+
"default": "jira",
|
|
2133
|
+
"hasDynamicHelp": false,
|
|
2134
|
+
"multiple": false,
|
|
2135
|
+
"options": [
|
|
2136
|
+
"gitlab-issues",
|
|
2137
|
+
"jira"
|
|
2138
|
+
],
|
|
2139
|
+
"type": "option"
|
|
2140
|
+
},
|
|
2141
|
+
"teams-webhook-url": {
|
|
2142
|
+
"name": "teams-webhook-url",
|
|
2143
|
+
"summary": "One or more Teams webhook URLs to send the notification to.",
|
|
2144
|
+
"hasDynamicHelp": false,
|
|
2145
|
+
"multiple": true,
|
|
2146
|
+
"type": "option"
|
|
2147
|
+
},
|
|
2148
|
+
"debug": {
|
|
2149
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
2150
|
+
"name": "debug",
|
|
2151
|
+
"summary": "Enable verbose debug logging.",
|
|
2152
|
+
"allowNo": false,
|
|
2153
|
+
"type": "boolean"
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
"hasDynamicHelp": false,
|
|
2157
|
+
"hiddenAliases": [],
|
|
2158
|
+
"id": "simply:cicd:notify:build",
|
|
2159
|
+
"pluginAlias": "@simplysf/simply-cicd",
|
|
2160
|
+
"pluginName": "@simplysf/simply-cicd",
|
|
2161
|
+
"pluginType": "core",
|
|
2162
|
+
"strict": true,
|
|
2163
|
+
"summary": "Send a build job's failure, or the package version it created, to Microsoft Teams, with issue-tracker integration.",
|
|
2164
|
+
"enableJsonFlag": true,
|
|
2165
|
+
"isESM": true,
|
|
2166
|
+
"relativePath": [
|
|
2167
|
+
"lib",
|
|
2168
|
+
"commands",
|
|
2169
|
+
"simply",
|
|
2170
|
+
"cicd",
|
|
2171
|
+
"notify",
|
|
2172
|
+
"build.js"
|
|
2173
|
+
],
|
|
2174
|
+
"aliasPermutations": [],
|
|
2175
|
+
"permutations": [
|
|
2176
|
+
"simply:cicd:notify:build",
|
|
2177
|
+
"cicd:simply:notify:build",
|
|
2178
|
+
"cicd:notify:simply:build",
|
|
2179
|
+
"cicd:notify:build:simply",
|
|
2180
|
+
"simply:notify:cicd:build",
|
|
2181
|
+
"notify:simply:cicd:build",
|
|
2182
|
+
"notify:cicd:simply:build",
|
|
2183
|
+
"notify:cicd:build:simply",
|
|
2184
|
+
"simply:notify:build:cicd",
|
|
2185
|
+
"notify:simply:build:cicd",
|
|
2186
|
+
"notify:build:simply:cicd",
|
|
2187
|
+
"notify:build:cicd:simply",
|
|
2188
|
+
"simply:cicd:build:notify",
|
|
2189
|
+
"cicd:simply:build:notify",
|
|
2190
|
+
"cicd:build:simply:notify",
|
|
2191
|
+
"cicd:build:notify:simply",
|
|
2192
|
+
"simply:build:cicd:notify",
|
|
2193
|
+
"build:simply:cicd:notify",
|
|
2194
|
+
"build:cicd:simply:notify",
|
|
2195
|
+
"build:cicd:notify:simply",
|
|
2196
|
+
"simply:build:notify:cicd",
|
|
2197
|
+
"build:simply:notify:cicd",
|
|
2198
|
+
"build:notify:simply:cicd",
|
|
2199
|
+
"build:notify:cicd:simply"
|
|
2174
2200
|
]
|
|
2175
2201
|
},
|
|
2176
|
-
"simply:cicd:
|
|
2202
|
+
"simply:cicd:notify:happy-soup": {
|
|
2177
2203
|
"aliases": [],
|
|
2178
2204
|
"args": {},
|
|
2179
|
-
"description": "
|
|
2205
|
+
"description": "Run with `--before-script` at the start of a stage to post a \"starting\" card, and with `--after-script` at the end to post a success or failure card. With `--notify-on-completion`, intermediate stage notifications are suppressed and only the final job (`--is-final-job` combined with `--after-script`) posts a card.\n\nOn a successful `--after-script`, reads the packages upgraded by `deploy happy-soup install-packaged` from the deploy progress file, looks up the commit history between each package's previous and target version in its own origin repository, and includes any matched issue references per package in the notification.",
|
|
2180
2206
|
"examples": [
|
|
2181
|
-
"
|
|
2182
|
-
"
|
|
2183
|
-
"Compile and pack without publishing, to inspect what would be produced:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --dry-run"
|
|
2207
|
+
"<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
|
|
2208
|
+
"<%= config.bin %> <%= command.id %> --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
2184
2209
|
],
|
|
2185
2210
|
"flags": {
|
|
2186
2211
|
"json": {
|
|
@@ -2198,134 +2223,170 @@
|
|
|
2198
2223
|
"multiple": false,
|
|
2199
2224
|
"type": "option"
|
|
2200
2225
|
},
|
|
2201
|
-
"
|
|
2202
|
-
"
|
|
2203
|
-
"
|
|
2204
|
-
"summary": "Enable verbose debug logging.",
|
|
2226
|
+
"after-script": {
|
|
2227
|
+
"name": "after-script",
|
|
2228
|
+
"summary": "Run the after-stage notification logic.",
|
|
2205
2229
|
"allowNo": false,
|
|
2206
2230
|
"type": "boolean"
|
|
2207
2231
|
},
|
|
2208
|
-
"
|
|
2209
|
-
"
|
|
2210
|
-
"
|
|
2211
|
-
"summary": "Skip this job entirely, logging a warning instead of running it.",
|
|
2232
|
+
"before-script": {
|
|
2233
|
+
"name": "before-script",
|
|
2234
|
+
"summary": "Run the before-stage (starting) notification logic.",
|
|
2212
2235
|
"allowNo": false,
|
|
2213
2236
|
"type": "boolean"
|
|
2214
2237
|
},
|
|
2215
|
-
"
|
|
2216
|
-
"env": "
|
|
2217
|
-
"name": "
|
|
2218
|
-
"
|
|
2219
|
-
"summary": "Alias of the Dev Hub that owns the package version. Must already be authenticated.",
|
|
2238
|
+
"ci-commit-ref-name": {
|
|
2239
|
+
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
2240
|
+
"name": "ci-commit-ref-name",
|
|
2241
|
+
"summary": "The git branch or tag ref for this pipeline run.",
|
|
2220
2242
|
"hasDynamicHelp": false,
|
|
2221
2243
|
"multiple": false,
|
|
2222
2244
|
"type": "option"
|
|
2223
2245
|
},
|
|
2224
|
-
"
|
|
2225
|
-
"
|
|
2226
|
-
"
|
|
2246
|
+
"ci-environment-name": {
|
|
2247
|
+
"env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
|
|
2248
|
+
"name": "ci-environment-name",
|
|
2249
|
+
"summary": "The name of the target CI environment.",
|
|
2227
2250
|
"hasDynamicHelp": false,
|
|
2228
2251
|
"multiple": false,
|
|
2229
2252
|
"type": "option"
|
|
2230
2253
|
},
|
|
2231
|
-
"
|
|
2232
|
-
"env": "
|
|
2233
|
-
"name": "
|
|
2234
|
-
"summary": "
|
|
2254
|
+
"ci-job-name": {
|
|
2255
|
+
"env": "SIMPLY_CICD_CI_JOB_NAME",
|
|
2256
|
+
"name": "ci-job-name",
|
|
2257
|
+
"summary": "The name of the current CI job.",
|
|
2235
2258
|
"hasDynamicHelp": false,
|
|
2236
2259
|
"multiple": false,
|
|
2237
2260
|
"type": "option"
|
|
2238
2261
|
},
|
|
2239
|
-
"
|
|
2240
|
-
"env": "
|
|
2241
|
-
"name": "
|
|
2242
|
-
"summary": "
|
|
2262
|
+
"ci-job-stage": {
|
|
2263
|
+
"env": "SIMPLY_CICD_CI_JOB_STAGE",
|
|
2264
|
+
"name": "ci-job-stage",
|
|
2265
|
+
"summary": "The stage of the current CI job.",
|
|
2243
2266
|
"hasDynamicHelp": false,
|
|
2244
2267
|
"multiple": false,
|
|
2245
2268
|
"type": "option"
|
|
2246
2269
|
},
|
|
2247
|
-
"
|
|
2248
|
-
"env": "
|
|
2249
|
-
"name": "
|
|
2250
|
-
"summary": "
|
|
2270
|
+
"ci-job-status": {
|
|
2271
|
+
"env": "SIMPLY_CICD_CI_JOB_STATUS",
|
|
2272
|
+
"name": "ci-job-status",
|
|
2273
|
+
"summary": "The status of the current CI job (e.g. success, failed).",
|
|
2251
2274
|
"hasDynamicHelp": false,
|
|
2252
2275
|
"multiple": false,
|
|
2253
2276
|
"type": "option"
|
|
2254
2277
|
},
|
|
2255
|
-
"
|
|
2256
|
-
"env": "
|
|
2257
|
-
"name": "
|
|
2258
|
-
"summary": "
|
|
2278
|
+
"ci-job-token": {
|
|
2279
|
+
"env": "SIMPLY_CICD_CI_JOB_TOKEN",
|
|
2280
|
+
"name": "ci-job-token",
|
|
2281
|
+
"summary": "The CI job token to try first when looking up an upgraded package's origin commit history. Falls back to --project-access-token if the job token can't read that repository.",
|
|
2259
2282
|
"hasDynamicHelp": false,
|
|
2260
2283
|
"multiple": false,
|
|
2261
|
-
"options": [
|
|
2262
|
-
"public",
|
|
2263
|
-
"restricted"
|
|
2264
|
-
],
|
|
2265
2284
|
"type": "option"
|
|
2266
2285
|
},
|
|
2267
|
-
"
|
|
2268
|
-
"
|
|
2269
|
-
"
|
|
2286
|
+
"ci-pipeline-id": {
|
|
2287
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_ID",
|
|
2288
|
+
"name": "ci-pipeline-id",
|
|
2289
|
+
"summary": "The ID of the current CI pipeline.",
|
|
2270
2290
|
"hasDynamicHelp": false,
|
|
2271
2291
|
"multiple": false,
|
|
2272
2292
|
"type": "option"
|
|
2273
2293
|
},
|
|
2274
|
-
"ci-
|
|
2275
|
-
"env": "
|
|
2276
|
-
"name": "ci-
|
|
2277
|
-
"summary": "
|
|
2294
|
+
"ci-pipeline-url": {
|
|
2295
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_URL",
|
|
2296
|
+
"name": "ci-pipeline-url",
|
|
2297
|
+
"summary": "The URL of the current CI pipeline.",
|
|
2278
2298
|
"hasDynamicHelp": false,
|
|
2279
2299
|
"multiple": false,
|
|
2280
2300
|
"type": "option"
|
|
2281
2301
|
},
|
|
2282
|
-
"
|
|
2283
|
-
"
|
|
2284
|
-
"
|
|
2302
|
+
"deploy-progress-file": {
|
|
2303
|
+
"env": "SIMPLY_CICD_DEPLOY_PROGRESS_FILE",
|
|
2304
|
+
"name": "deploy-progress-file",
|
|
2305
|
+
"summary": "Path to the deployment progress file to read upgraded package information from.",
|
|
2306
|
+
"default": "DEPLOY_PROGRESS.json",
|
|
2285
2307
|
"hasDynamicHelp": false,
|
|
2286
2308
|
"multiple": false,
|
|
2287
2309
|
"type": "option"
|
|
2288
2310
|
},
|
|
2289
|
-
"
|
|
2290
|
-
"env": "
|
|
2291
|
-
"name": "
|
|
2292
|
-
"summary": "
|
|
2293
|
-
"
|
|
2311
|
+
"enabled": {
|
|
2312
|
+
"env": "SIMPLY_CICD_ENABLED",
|
|
2313
|
+
"name": "enabled",
|
|
2314
|
+
"summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
|
|
2315
|
+
"allowNo": false,
|
|
2316
|
+
"type": "boolean"
|
|
2317
|
+
},
|
|
2318
|
+
"alm-base-url": {
|
|
2319
|
+
"env": "SIMPLY_CICD_ALM_BASE_URL",
|
|
2320
|
+
"name": "alm-base-url",
|
|
2321
|
+
"summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
|
|
2294
2322
|
"hasDynamicHelp": false,
|
|
2295
2323
|
"multiple": false,
|
|
2296
2324
|
"type": "option"
|
|
2297
2325
|
},
|
|
2298
|
-
"
|
|
2299
|
-
"
|
|
2300
|
-
"
|
|
2301
|
-
"
|
|
2302
|
-
"
|
|
2326
|
+
"alm-project-key": {
|
|
2327
|
+
"env": "SIMPLY_CICD_ALM_PROJECT_KEY",
|
|
2328
|
+
"name": "alm-project-key",
|
|
2329
|
+
"summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
|
|
2330
|
+
"hasDynamicHelp": false,
|
|
2331
|
+
"multiple": false,
|
|
2332
|
+
"type": "option"
|
|
2303
2333
|
},
|
|
2304
|
-
"
|
|
2305
|
-
"
|
|
2306
|
-
"
|
|
2307
|
-
"
|
|
2334
|
+
"alm-provider": {
|
|
2335
|
+
"env": "SIMPLY_CICD_ALM_PROVIDER",
|
|
2336
|
+
"name": "alm-provider",
|
|
2337
|
+
"summary": "The issue tracker whose reference format to look for in commit messages.",
|
|
2338
|
+
"default": "jira",
|
|
2308
2339
|
"hasDynamicHelp": false,
|
|
2309
2340
|
"multiple": false,
|
|
2341
|
+
"options": [
|
|
2342
|
+
"gitlab-issues",
|
|
2343
|
+
"jira"
|
|
2344
|
+
],
|
|
2310
2345
|
"type": "option"
|
|
2311
2346
|
},
|
|
2312
|
-
"
|
|
2313
|
-
"
|
|
2314
|
-
"
|
|
2315
|
-
"
|
|
2347
|
+
"project-access-token": {
|
|
2348
|
+
"env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
|
|
2349
|
+
"name": "project-access-token",
|
|
2350
|
+
"summary": "A personal or project access token, used to look up an upgraded package's origin commit history when --ci-job-token isn't provided or can't read that repository.",
|
|
2316
2351
|
"hasDynamicHelp": false,
|
|
2317
2352
|
"multiple": false,
|
|
2318
2353
|
"type": "option"
|
|
2354
|
+
},
|
|
2355
|
+
"teams-webhook-url": {
|
|
2356
|
+
"name": "teams-webhook-url",
|
|
2357
|
+
"summary": "One or more Teams webhook URLs to send the notification to.",
|
|
2358
|
+
"hasDynamicHelp": false,
|
|
2359
|
+
"multiple": true,
|
|
2360
|
+
"type": "option"
|
|
2361
|
+
},
|
|
2362
|
+
"notify-on-completion": {
|
|
2363
|
+
"name": "notify-on-completion",
|
|
2364
|
+
"summary": "Only send a notification on the final job of the pipeline, suppressing per-stage notifications.",
|
|
2365
|
+
"allowNo": false,
|
|
2366
|
+
"type": "boolean"
|
|
2367
|
+
},
|
|
2368
|
+
"is-final-job": {
|
|
2369
|
+
"name": "is-final-job",
|
|
2370
|
+
"summary": "Marks this job as the final job in the pipeline. Combined with --after-script and --notify-on-completion, this is what actually triggers the final notification.",
|
|
2371
|
+
"allowNo": false,
|
|
2372
|
+
"type": "boolean"
|
|
2373
|
+
},
|
|
2374
|
+
"debug": {
|
|
2375
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
2376
|
+
"name": "debug",
|
|
2377
|
+
"summary": "Enable verbose debug logging.",
|
|
2378
|
+
"allowNo": false,
|
|
2379
|
+
"type": "boolean"
|
|
2319
2380
|
}
|
|
2320
2381
|
},
|
|
2321
2382
|
"hasDynamicHelp": false,
|
|
2322
2383
|
"hiddenAliases": [],
|
|
2323
|
-
"id": "simply:cicd:
|
|
2384
|
+
"id": "simply:cicd:notify:happy-soup",
|
|
2324
2385
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
2325
2386
|
"pluginName": "@simplysf/simply-cicd",
|
|
2326
2387
|
"pluginType": "core",
|
|
2327
2388
|
"strict": true,
|
|
2328
|
-
"summary": "
|
|
2389
|
+
"summary": "Send a happy-soup deployment stage notification to Microsoft Teams, with ALM story integration for upgraded packages.",
|
|
2329
2390
|
"enableJsonFlag": true,
|
|
2330
2391
|
"isESM": true,
|
|
2331
2392
|
"relativePath": [
|
|
@@ -2333,43 +2394,44 @@
|
|
|
2333
2394
|
"commands",
|
|
2334
2395
|
"simply",
|
|
2335
2396
|
"cicd",
|
|
2336
|
-
"
|
|
2337
|
-
"
|
|
2397
|
+
"notify",
|
|
2398
|
+
"happy-soup.js"
|
|
2338
2399
|
],
|
|
2339
2400
|
"aliasPermutations": [],
|
|
2340
2401
|
"permutations": [
|
|
2341
|
-
"simply:cicd:
|
|
2342
|
-
"cicd:simply:
|
|
2343
|
-
"cicd:
|
|
2344
|
-
"cicd:
|
|
2345
|
-
"simply:
|
|
2346
|
-
"
|
|
2347
|
-
"
|
|
2348
|
-
"
|
|
2349
|
-
"simply:
|
|
2350
|
-
"
|
|
2351
|
-
"
|
|
2352
|
-
"
|
|
2353
|
-
"simply:cicd:
|
|
2354
|
-
"cicd:simply:
|
|
2355
|
-
"cicd:
|
|
2356
|
-
"cicd:
|
|
2357
|
-
"simply:
|
|
2358
|
-
"
|
|
2359
|
-
"
|
|
2360
|
-
"
|
|
2361
|
-
"simply:
|
|
2362
|
-
"
|
|
2363
|
-
"
|
|
2364
|
-
"
|
|
2402
|
+
"simply:cicd:notify:happy-soup",
|
|
2403
|
+
"cicd:simply:notify:happy-soup",
|
|
2404
|
+
"cicd:notify:simply:happy-soup",
|
|
2405
|
+
"cicd:notify:happy-soup:simply",
|
|
2406
|
+
"simply:notify:cicd:happy-soup",
|
|
2407
|
+
"notify:simply:cicd:happy-soup",
|
|
2408
|
+
"notify:cicd:simply:happy-soup",
|
|
2409
|
+
"notify:cicd:happy-soup:simply",
|
|
2410
|
+
"simply:notify:happy-soup:cicd",
|
|
2411
|
+
"notify:simply:happy-soup:cicd",
|
|
2412
|
+
"notify:happy-soup:simply:cicd",
|
|
2413
|
+
"notify:happy-soup:cicd:simply",
|
|
2414
|
+
"simply:cicd:happy-soup:notify",
|
|
2415
|
+
"cicd:simply:happy-soup:notify",
|
|
2416
|
+
"cicd:happy-soup:simply:notify",
|
|
2417
|
+
"cicd:happy-soup:notify:simply",
|
|
2418
|
+
"simply:happy-soup:cicd:notify",
|
|
2419
|
+
"happy-soup:simply:cicd:notify",
|
|
2420
|
+
"happy-soup:cicd:simply:notify",
|
|
2421
|
+
"happy-soup:cicd:notify:simply",
|
|
2422
|
+
"simply:happy-soup:notify:cicd",
|
|
2423
|
+
"happy-soup:simply:notify:cicd",
|
|
2424
|
+
"happy-soup:notify:simply:cicd",
|
|
2425
|
+
"happy-soup:notify:cicd:simply"
|
|
2365
2426
|
]
|
|
2366
2427
|
},
|
|
2367
|
-
"simply:cicd:
|
|
2428
|
+
"simply:cicd:notify:project": {
|
|
2368
2429
|
"aliases": [],
|
|
2369
2430
|
"args": {},
|
|
2370
|
-
"description": "
|
|
2431
|
+
"description": "Run once with `--before-script` at the start of a deployment pipeline (to record the previously installed and target package versions), and once with `--after-script` at the end (to post a success or failure card to Teams, including the tracked issues that shipped between those two versions).",
|
|
2371
2432
|
"examples": [
|
|
2372
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2433
|
+
"<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --enabled",
|
|
2434
|
+
"<%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
2373
2435
|
],
|
|
2374
2436
|
"flags": {
|
|
2375
2437
|
"json": {
|
|
@@ -2379,58 +2441,186 @@
|
|
|
2379
2441
|
"allowNo": false,
|
|
2380
2442
|
"type": "boolean"
|
|
2381
2443
|
},
|
|
2382
|
-
"flags-dir": {
|
|
2383
|
-
"helpGroup": "GLOBAL",
|
|
2384
|
-
"name": "flags-dir",
|
|
2385
|
-
"summary": "Import flag values from a directory.",
|
|
2444
|
+
"flags-dir": {
|
|
2445
|
+
"helpGroup": "GLOBAL",
|
|
2446
|
+
"name": "flags-dir",
|
|
2447
|
+
"summary": "Import flag values from a directory.",
|
|
2448
|
+
"hasDynamicHelp": false,
|
|
2449
|
+
"multiple": false,
|
|
2450
|
+
"type": "option"
|
|
2451
|
+
},
|
|
2452
|
+
"after-script": {
|
|
2453
|
+
"name": "after-script",
|
|
2454
|
+
"summary": "Run the after-deployment notification logic.",
|
|
2455
|
+
"allowNo": false,
|
|
2456
|
+
"type": "boolean"
|
|
2457
|
+
},
|
|
2458
|
+
"alias": {
|
|
2459
|
+
"env": "SIMPLY_CICD_ALIAS",
|
|
2460
|
+
"name": "alias",
|
|
2461
|
+
"summary": "Alias of the target Salesforce org to query for the previously installed package version. Must already be authenticated.",
|
|
2462
|
+
"hasDynamicHelp": false,
|
|
2463
|
+
"multiple": false,
|
|
2464
|
+
"type": "option"
|
|
2465
|
+
},
|
|
2466
|
+
"before-script": {
|
|
2467
|
+
"name": "before-script",
|
|
2468
|
+
"summary": "Run the before-deployment setup logic (resolves and records package versions).",
|
|
2469
|
+
"allowNo": false,
|
|
2470
|
+
"type": "boolean"
|
|
2471
|
+
},
|
|
2472
|
+
"ci-commit-ref-name": {
|
|
2473
|
+
"env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
|
|
2474
|
+
"name": "ci-commit-ref-name",
|
|
2475
|
+
"summary": "The git branch or tag ref for this pipeline run.",
|
|
2476
|
+
"hasDynamicHelp": false,
|
|
2477
|
+
"multiple": false,
|
|
2478
|
+
"type": "option"
|
|
2479
|
+
},
|
|
2480
|
+
"ci-environment-name": {
|
|
2481
|
+
"env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
|
|
2482
|
+
"name": "ci-environment-name",
|
|
2483
|
+
"summary": "The name of the target CI environment.",
|
|
2484
|
+
"hasDynamicHelp": false,
|
|
2485
|
+
"multiple": false,
|
|
2486
|
+
"type": "option"
|
|
2487
|
+
},
|
|
2488
|
+
"ci-job-name": {
|
|
2489
|
+
"env": "SIMPLY_CICD_CI_JOB_NAME",
|
|
2490
|
+
"name": "ci-job-name",
|
|
2491
|
+
"summary": "The name of the current CI job.",
|
|
2492
|
+
"hasDynamicHelp": false,
|
|
2493
|
+
"multiple": false,
|
|
2494
|
+
"type": "option"
|
|
2495
|
+
},
|
|
2496
|
+
"ci-job-stage": {
|
|
2497
|
+
"env": "SIMPLY_CICD_CI_JOB_STAGE",
|
|
2498
|
+
"name": "ci-job-stage",
|
|
2499
|
+
"summary": "The stage of the current CI job (e.g. pre-destructive, post-destructive).",
|
|
2500
|
+
"hasDynamicHelp": false,
|
|
2501
|
+
"multiple": false,
|
|
2502
|
+
"type": "option"
|
|
2503
|
+
},
|
|
2504
|
+
"ci-job-status": {
|
|
2505
|
+
"env": "SIMPLY_CICD_CI_JOB_STATUS",
|
|
2506
|
+
"name": "ci-job-status",
|
|
2507
|
+
"summary": "The status of the current CI job (e.g. success, failed, canceled).",
|
|
2508
|
+
"hasDynamicHelp": false,
|
|
2509
|
+
"multiple": false,
|
|
2510
|
+
"type": "option"
|
|
2511
|
+
},
|
|
2512
|
+
"ci-pipeline-id": {
|
|
2513
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_ID",
|
|
2514
|
+
"name": "ci-pipeline-id",
|
|
2515
|
+
"summary": "The ID of the current CI pipeline.",
|
|
2516
|
+
"hasDynamicHelp": false,
|
|
2517
|
+
"multiple": false,
|
|
2518
|
+
"type": "option"
|
|
2519
|
+
},
|
|
2520
|
+
"ci-pipeline-url": {
|
|
2521
|
+
"env": "SIMPLY_CICD_CI_PIPELINE_URL",
|
|
2522
|
+
"name": "ci-pipeline-url",
|
|
2523
|
+
"summary": "The URL of the current CI pipeline.",
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"multiple": false,
|
|
2526
|
+
"type": "option"
|
|
2527
|
+
},
|
|
2528
|
+
"ci-project-title": {
|
|
2529
|
+
"env": "SIMPLY_CICD_CI_PROJECT_TITLE",
|
|
2530
|
+
"name": "ci-project-title",
|
|
2531
|
+
"summary": "The project title shown in the notification card's heading.",
|
|
2386
2532
|
"hasDynamicHelp": false,
|
|
2387
2533
|
"multiple": false,
|
|
2388
2534
|
"type": "option"
|
|
2389
2535
|
},
|
|
2390
|
-
"
|
|
2391
|
-
"env": "
|
|
2392
|
-
"name": "
|
|
2393
|
-
"summary": "
|
|
2536
|
+
"packaging-devhub": {
|
|
2537
|
+
"env": "SIMPLY_CICD_PACKAGING_DEVHUB",
|
|
2538
|
+
"name": "packaging-devhub",
|
|
2539
|
+
"summary": "Alias of the Dev Hub used to look up target package version information. Must already be authenticated.",
|
|
2394
2540
|
"hasDynamicHelp": false,
|
|
2395
2541
|
"multiple": false,
|
|
2396
2542
|
"type": "option"
|
|
2397
2543
|
},
|
|
2398
|
-
"
|
|
2399
|
-
"env": "
|
|
2400
|
-
"name": "
|
|
2401
|
-
"summary": "
|
|
2544
|
+
"enabled": {
|
|
2545
|
+
"env": "SIMPLY_CICD_ENABLED",
|
|
2546
|
+
"name": "enabled",
|
|
2547
|
+
"summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
|
|
2402
2548
|
"allowNo": false,
|
|
2403
2549
|
"type": "boolean"
|
|
2404
2550
|
},
|
|
2405
|
-
"
|
|
2406
|
-
"env": "
|
|
2407
|
-
"name": "
|
|
2408
|
-
"summary": "
|
|
2409
|
-
"
|
|
2410
|
-
"
|
|
2551
|
+
"alm-base-url": {
|
|
2552
|
+
"env": "SIMPLY_CICD_ALM_BASE_URL",
|
|
2553
|
+
"name": "alm-base-url",
|
|
2554
|
+
"summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
|
|
2555
|
+
"hasDynamicHelp": false,
|
|
2556
|
+
"multiple": false,
|
|
2557
|
+
"type": "option"
|
|
2411
2558
|
},
|
|
2412
|
-
"
|
|
2413
|
-
"
|
|
2414
|
-
"
|
|
2415
|
-
"
|
|
2416
|
-
"
|
|
2559
|
+
"alm-project-key": {
|
|
2560
|
+
"env": "SIMPLY_CICD_ALM_PROJECT_KEY",
|
|
2561
|
+
"name": "alm-project-key",
|
|
2562
|
+
"summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
|
|
2563
|
+
"hasDynamicHelp": false,
|
|
2564
|
+
"multiple": false,
|
|
2565
|
+
"type": "option"
|
|
2417
2566
|
},
|
|
2418
|
-
"
|
|
2419
|
-
"
|
|
2420
|
-
"
|
|
2567
|
+
"alm-provider": {
|
|
2568
|
+
"env": "SIMPLY_CICD_ALM_PROVIDER",
|
|
2569
|
+
"name": "alm-provider",
|
|
2570
|
+
"summary": "The issue tracker whose reference format to look for in commit messages.",
|
|
2571
|
+
"default": "jira",
|
|
2572
|
+
"hasDynamicHelp": false,
|
|
2573
|
+
"multiple": false,
|
|
2574
|
+
"options": [
|
|
2575
|
+
"gitlab-issues",
|
|
2576
|
+
"jira"
|
|
2577
|
+
],
|
|
2578
|
+
"type": "option"
|
|
2579
|
+
},
|
|
2580
|
+
"prev-installed-package-version": {
|
|
2581
|
+
"name": "prev-installed-package-version",
|
|
2582
|
+
"summary": "The previously installed package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
|
|
2583
|
+
"hasDynamicHelp": false,
|
|
2584
|
+
"multiple": false,
|
|
2585
|
+
"type": "option"
|
|
2586
|
+
},
|
|
2587
|
+
"subscriber-package-version-id": {
|
|
2588
|
+
"name": "subscriber-package-version-id",
|
|
2589
|
+
"summary": "The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the packaging DevHub.",
|
|
2590
|
+
"hasDynamicHelp": false,
|
|
2591
|
+
"multiple": false,
|
|
2592
|
+
"type": "option"
|
|
2593
|
+
},
|
|
2594
|
+
"target-package-version": {
|
|
2595
|
+
"name": "target-package-version",
|
|
2596
|
+
"summary": "The target package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
|
|
2421
2597
|
"hasDynamicHelp": false,
|
|
2422
2598
|
"multiple": false,
|
|
2423
2599
|
"type": "option"
|
|
2600
|
+
},
|
|
2601
|
+
"teams-webhook-url": {
|
|
2602
|
+
"name": "teams-webhook-url",
|
|
2603
|
+
"summary": "One or more Teams webhook URLs to send the notification to.",
|
|
2604
|
+
"hasDynamicHelp": false,
|
|
2605
|
+
"multiple": true,
|
|
2606
|
+
"type": "option"
|
|
2607
|
+
},
|
|
2608
|
+
"debug": {
|
|
2609
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
2610
|
+
"name": "debug",
|
|
2611
|
+
"summary": "Enable verbose debug logging.",
|
|
2612
|
+
"allowNo": false,
|
|
2613
|
+
"type": "boolean"
|
|
2424
2614
|
}
|
|
2425
2615
|
},
|
|
2426
2616
|
"hasDynamicHelp": false,
|
|
2427
2617
|
"hiddenAliases": [],
|
|
2428
|
-
"id": "simply:cicd:
|
|
2618
|
+
"id": "simply:cicd:notify:project",
|
|
2429
2619
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
2430
2620
|
"pluginName": "@simplysf/simply-cicd",
|
|
2431
2621
|
"pluginType": "core",
|
|
2432
2622
|
"strict": true,
|
|
2433
|
-
"summary": "
|
|
2623
|
+
"summary": "Send a project deployment notification to Microsoft Teams, with issue-tracker integration.",
|
|
2434
2624
|
"enableJsonFlag": true,
|
|
2435
2625
|
"isESM": true,
|
|
2436
2626
|
"relativePath": [
|
|
@@ -2438,43 +2628,43 @@
|
|
|
2438
2628
|
"commands",
|
|
2439
2629
|
"simply",
|
|
2440
2630
|
"cicd",
|
|
2441
|
-
"
|
|
2442
|
-
"
|
|
2631
|
+
"notify",
|
|
2632
|
+
"project.js"
|
|
2443
2633
|
],
|
|
2444
2634
|
"aliasPermutations": [],
|
|
2445
2635
|
"permutations": [
|
|
2446
|
-
"simply:cicd:
|
|
2447
|
-
"cicd:simply:
|
|
2448
|
-
"cicd:
|
|
2449
|
-
"cicd:
|
|
2450
|
-
"simply:
|
|
2451
|
-
"
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2454
|
-
"simply:
|
|
2455
|
-
"
|
|
2456
|
-
"
|
|
2457
|
-
"
|
|
2458
|
-
"simply:cicd:
|
|
2459
|
-
"cicd:simply:
|
|
2460
|
-
"cicd:
|
|
2461
|
-
"cicd:
|
|
2462
|
-
"simply:
|
|
2463
|
-
"
|
|
2464
|
-
"
|
|
2465
|
-
"
|
|
2466
|
-
"simply:
|
|
2467
|
-
"
|
|
2468
|
-
"
|
|
2469
|
-
"
|
|
2636
|
+
"simply:cicd:notify:project",
|
|
2637
|
+
"cicd:simply:notify:project",
|
|
2638
|
+
"cicd:notify:simply:project",
|
|
2639
|
+
"cicd:notify:project:simply",
|
|
2640
|
+
"simply:notify:cicd:project",
|
|
2641
|
+
"notify:simply:cicd:project",
|
|
2642
|
+
"notify:cicd:simply:project",
|
|
2643
|
+
"notify:cicd:project:simply",
|
|
2644
|
+
"simply:notify:project:cicd",
|
|
2645
|
+
"notify:simply:project:cicd",
|
|
2646
|
+
"notify:project:simply:cicd",
|
|
2647
|
+
"notify:project:cicd:simply",
|
|
2648
|
+
"simply:cicd:project:notify",
|
|
2649
|
+
"cicd:simply:project:notify",
|
|
2650
|
+
"cicd:project:simply:notify",
|
|
2651
|
+
"cicd:project:notify:simply",
|
|
2652
|
+
"simply:project:cicd:notify",
|
|
2653
|
+
"project:simply:cicd:notify",
|
|
2654
|
+
"project:cicd:simply:notify",
|
|
2655
|
+
"project:cicd:notify:simply",
|
|
2656
|
+
"simply:project:notify:cicd",
|
|
2657
|
+
"project:simply:notify:cicd",
|
|
2658
|
+
"project:notify:simply:cicd",
|
|
2659
|
+
"project:notify:cicd:simply"
|
|
2470
2660
|
]
|
|
2471
2661
|
},
|
|
2472
|
-
"simply:cicd:
|
|
2662
|
+
"simply:cicd:notify:teams": {
|
|
2473
2663
|
"aliases": [],
|
|
2474
2664
|
"args": {},
|
|
2475
|
-
"description": "
|
|
2665
|
+
"description": "Posts a payload as-is to one or more Microsoft Teams incoming webhook URLs. Use this for custom notifications that don't fit the built-in `notify project`, `notify happy-soup`, or `notify build` card templates.",
|
|
2476
2666
|
"examples": [
|
|
2477
|
-
"<%= config.bin %> <%= command.id %> --
|
|
2667
|
+
"<%= config.bin %> <%= command.id %> --payload '{\"text\":\"Deployment complete\"}' --webhook-url https://outlook.office.com/webhook/... --enabled"
|
|
2478
2668
|
],
|
|
2479
2669
|
"flags": {
|
|
2480
2670
|
"json": {
|
|
@@ -2492,43 +2682,46 @@
|
|
|
2492
2682
|
"multiple": false,
|
|
2493
2683
|
"type": "option"
|
|
2494
2684
|
},
|
|
2495
|
-
"
|
|
2496
|
-
"
|
|
2497
|
-
"
|
|
2498
|
-
"summary": "
|
|
2685
|
+
"payload": {
|
|
2686
|
+
"name": "payload",
|
|
2687
|
+
"required": true,
|
|
2688
|
+
"summary": "The JSON payload to send to Teams, as a serialized string.",
|
|
2499
2689
|
"hasDynamicHelp": false,
|
|
2500
2690
|
"multiple": false,
|
|
2501
2691
|
"type": "option"
|
|
2502
2692
|
},
|
|
2503
|
-
"
|
|
2504
|
-
"env": "
|
|
2505
|
-
"name": "
|
|
2506
|
-
"
|
|
2507
|
-
"
|
|
2508
|
-
"
|
|
2693
|
+
"webhook-url": {
|
|
2694
|
+
"env": "SIMPLY_CICD_WEBHOOK_URL",
|
|
2695
|
+
"name": "webhook-url",
|
|
2696
|
+
"required": true,
|
|
2697
|
+
"summary": "The Teams webhook URL to send the payload to.",
|
|
2698
|
+
"hasDynamicHelp": false,
|
|
2699
|
+
"multiple": false,
|
|
2700
|
+
"type": "option"
|
|
2509
2701
|
},
|
|
2510
|
-
"
|
|
2511
|
-
"env": "
|
|
2512
|
-
"name": "
|
|
2513
|
-
"summary": "
|
|
2702
|
+
"enabled": {
|
|
2703
|
+
"env": "SIMPLY_CICD_ENABLED",
|
|
2704
|
+
"name": "enabled",
|
|
2705
|
+
"summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
|
|
2514
2706
|
"allowNo": false,
|
|
2515
2707
|
"type": "boolean"
|
|
2516
2708
|
},
|
|
2517
|
-
"
|
|
2518
|
-
"
|
|
2519
|
-
"
|
|
2709
|
+
"debug": {
|
|
2710
|
+
"env": "SIMPLY_CICD_DEBUG",
|
|
2711
|
+
"name": "debug",
|
|
2712
|
+
"summary": "Enable verbose debug logging.",
|
|
2520
2713
|
"allowNo": false,
|
|
2521
2714
|
"type": "boolean"
|
|
2522
2715
|
}
|
|
2523
2716
|
},
|
|
2524
2717
|
"hasDynamicHelp": false,
|
|
2525
2718
|
"hiddenAliases": [],
|
|
2526
|
-
"id": "simply:cicd:
|
|
2719
|
+
"id": "simply:cicd:notify:teams",
|
|
2527
2720
|
"pluginAlias": "@simplysf/simply-cicd",
|
|
2528
2721
|
"pluginName": "@simplysf/simply-cicd",
|
|
2529
2722
|
"pluginType": "core",
|
|
2530
2723
|
"strict": true,
|
|
2531
|
-
"summary": "
|
|
2724
|
+
"summary": "Send a serialized JSON payload to a Microsoft Teams webhook.",
|
|
2532
2725
|
"enableJsonFlag": true,
|
|
2533
2726
|
"isESM": true,
|
|
2534
2727
|
"relativePath": [
|
|
@@ -2536,35 +2729,35 @@
|
|
|
2536
2729
|
"commands",
|
|
2537
2730
|
"simply",
|
|
2538
2731
|
"cicd",
|
|
2539
|
-
"
|
|
2540
|
-
"
|
|
2732
|
+
"notify",
|
|
2733
|
+
"teams.js"
|
|
2541
2734
|
],
|
|
2542
2735
|
"aliasPermutations": [],
|
|
2543
2736
|
"permutations": [
|
|
2544
|
-
"simply:cicd:
|
|
2545
|
-
"cicd:simply:
|
|
2546
|
-
"cicd:
|
|
2547
|
-
"cicd:
|
|
2548
|
-
"simply:
|
|
2549
|
-
"
|
|
2550
|
-
"
|
|
2551
|
-
"
|
|
2552
|
-
"simply:
|
|
2553
|
-
"
|
|
2554
|
-
"
|
|
2555
|
-
"
|
|
2556
|
-
"simply:cicd:
|
|
2557
|
-
"cicd:simply:
|
|
2558
|
-
"cicd:
|
|
2559
|
-
"cicd:
|
|
2560
|
-
"simply:
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2564
|
-
"simply:
|
|
2565
|
-
"
|
|
2566
|
-
"
|
|
2567
|
-
"
|
|
2737
|
+
"simply:cicd:notify:teams",
|
|
2738
|
+
"cicd:simply:notify:teams",
|
|
2739
|
+
"cicd:notify:simply:teams",
|
|
2740
|
+
"cicd:notify:teams:simply",
|
|
2741
|
+
"simply:notify:cicd:teams",
|
|
2742
|
+
"notify:simply:cicd:teams",
|
|
2743
|
+
"notify:cicd:simply:teams",
|
|
2744
|
+
"notify:cicd:teams:simply",
|
|
2745
|
+
"simply:notify:teams:cicd",
|
|
2746
|
+
"notify:simply:teams:cicd",
|
|
2747
|
+
"notify:teams:simply:cicd",
|
|
2748
|
+
"notify:teams:cicd:simply",
|
|
2749
|
+
"simply:cicd:teams:notify",
|
|
2750
|
+
"cicd:simply:teams:notify",
|
|
2751
|
+
"cicd:teams:simply:notify",
|
|
2752
|
+
"cicd:teams:notify:simply",
|
|
2753
|
+
"simply:teams:cicd:notify",
|
|
2754
|
+
"teams:simply:cicd:notify",
|
|
2755
|
+
"teams:cicd:simply:notify",
|
|
2756
|
+
"teams:cicd:notify:simply",
|
|
2757
|
+
"simply:teams:notify:cicd",
|
|
2758
|
+
"teams:simply:notify:cicd",
|
|
2759
|
+
"teams:notify:simply:cicd",
|
|
2760
|
+
"teams:notify:cicd:simply"
|
|
2568
2761
|
]
|
|
2569
2762
|
},
|
|
2570
2763
|
"simply:cicd:deploy:happy-soup:deploy-unpackaged": {
|
|
@@ -6519,5 +6712,5 @@
|
|
|
6519
6712
|
]
|
|
6520
6713
|
}
|
|
6521
6714
|
},
|
|
6522
|
-
"version": "0.
|
|
6715
|
+
"version": "0.17.0"
|
|
6523
6716
|
}
|