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