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