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