@simplysf/simply-cicd 0.3.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.
Files changed (274) hide show
  1. package/README.md +1621 -0
  2. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.d.ts +21 -0
  3. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js +47 -0
  4. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js.map +1 -0
  5. package/lib/commands/simply/cicd/build/create-fallback-tag.d.ts +25 -0
  6. package/lib/commands/simply/cicd/build/create-fallback-tag.js +63 -0
  7. package/lib/commands/simply/cicd/build/create-fallback-tag.js.map +1 -0
  8. package/lib/commands/simply/cicd/build/create-package-version.d.ts +32 -0
  9. package/lib/commands/simply/cicd/build/create-package-version.js +110 -0
  10. package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -0
  11. package/lib/commands/simply/cicd/build/create-scratch.d.ts +25 -0
  12. package/lib/commands/simply/cicd/build/create-scratch.js +63 -0
  13. package/lib/commands/simply/cicd/build/create-scratch.js.map +1 -0
  14. package/lib/commands/simply/cicd/build/delete-scratch.d.ts +21 -0
  15. package/lib/commands/simply/cicd/build/delete-scratch.js +53 -0
  16. package/lib/commands/simply/cicd/build/delete-scratch.js.map +1 -0
  17. package/lib/commands/simply/cicd/build/determine-package-changes.d.ts +17 -0
  18. package/lib/commands/simply/cicd/build/determine-package-changes.js +44 -0
  19. package/lib/commands/simply/cicd/build/determine-package-changes.js.map +1 -0
  20. package/lib/commands/simply/cicd/build/generate-flexipage-diff.d.ts +20 -0
  21. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js +47 -0
  22. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js.map +1 -0
  23. package/lib/commands/simply/cicd/build/generate-flow-diff.d.ts +20 -0
  24. package/lib/commands/simply/cicd/build/generate-flow-diff.js +47 -0
  25. package/lib/commands/simply/cicd/build/generate-flow-diff.js.map +1 -0
  26. package/lib/commands/simply/cicd/build/install-dependencies.d.ts +18 -0
  27. package/lib/commands/simply/cicd/build/install-dependencies.js +58 -0
  28. package/lib/commands/simply/cicd/build/install-dependencies.js.map +1 -0
  29. package/lib/commands/simply/cicd/build/lwc-jest.d.ts +14 -0
  30. package/lib/commands/simply/cicd/build/lwc-jest.js +37 -0
  31. package/lib/commands/simply/cicd/build/lwc-jest.js.map +1 -0
  32. package/lib/commands/simply/cicd/build/push-scratch.d.ts +19 -0
  33. package/lib/commands/simply/cicd/build/push-scratch.js +57 -0
  34. package/lib/commands/simply/cicd/build/push-scratch.js.map +1 -0
  35. package/lib/commands/simply/cicd/build/test-scratch.d.ts +18 -0
  36. package/lib/commands/simply/cicd/build/test-scratch.js +58 -0
  37. package/lib/commands/simply/cicd/build/test-scratch.js.map +1 -0
  38. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.d.ts +29 -0
  39. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js +36 -0
  40. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js.map +1 -0
  41. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.d.ts +23 -0
  42. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js +82 -0
  43. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js.map +1 -0
  44. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +21 -0
  45. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +57 -0
  46. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -0
  47. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.d.ts +29 -0
  48. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js +36 -0
  49. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js.map +1 -0
  50. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.d.ts +29 -0
  51. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js +36 -0
  52. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js.map +1 -0
  53. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.d.ts +29 -0
  54. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js +36 -0
  55. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js.map +1 -0
  56. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.d.ts +28 -0
  57. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js +89 -0
  58. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js.map +1 -0
  59. package/lib/commands/simply/cicd/deploy/happy-soup/validate.d.ts +15 -0
  60. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js +49 -0
  61. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js.map +1 -0
  62. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.d.ts +28 -0
  63. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js +36 -0
  64. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js.map +1 -0
  65. package/lib/commands/simply/cicd/deploy/project/install-packaged.d.ts +24 -0
  66. package/lib/commands/simply/cicd/deploy/project/install-packaged.js +69 -0
  67. package/lib/commands/simply/cicd/deploy/project/install-packaged.js.map +1 -0
  68. package/lib/commands/simply/cicd/deploy/project/post-deploy.d.ts +28 -0
  69. package/lib/commands/simply/cicd/deploy/project/post-deploy.js +36 -0
  70. package/lib/commands/simply/cicd/deploy/project/post-deploy.js.map +1 -0
  71. package/lib/commands/simply/cicd/deploy/project/post-destructive.d.ts +28 -0
  72. package/lib/commands/simply/cicd/deploy/project/post-destructive.js +36 -0
  73. package/lib/commands/simply/cicd/deploy/project/post-destructive.js.map +1 -0
  74. package/lib/commands/simply/cicd/deploy/project/pre-destructive.d.ts +28 -0
  75. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js +36 -0
  76. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js.map +1 -0
  77. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.d.ts +26 -0
  78. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js +66 -0
  79. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js.map +1 -0
  80. package/lib/commands/simply/cicd/deploy/project/validate.d.ts +14 -0
  81. package/lib/commands/simply/cicd/deploy/project/validate.js +51 -0
  82. package/lib/commands/simply/cicd/deploy/project/validate.js.map +1 -0
  83. package/lib/commands/simply/cicd/deploy/validate.d.ts +14 -0
  84. package/lib/commands/simply/cicd/deploy/validate.js +50 -0
  85. package/lib/commands/simply/cicd/deploy/validate.js.map +1 -0
  86. package/lib/commands/simply/cicd/notify/happy-soup.d.ts +32 -0
  87. package/lib/commands/simply/cicd/notify/happy-soup.js +193 -0
  88. package/lib/commands/simply/cicd/notify/happy-soup.js.map +1 -0
  89. package/lib/commands/simply/cicd/notify/project.d.ts +51 -0
  90. package/lib/commands/simply/cicd/notify/project.js +376 -0
  91. package/lib/commands/simply/cicd/notify/project.js.map +1 -0
  92. package/lib/commands/simply/cicd/notify/teams.d.ts +18 -0
  93. package/lib/commands/simply/cicd/notify/teams.js +77 -0
  94. package/lib/commands/simply/cicd/notify/teams.js.map +1 -0
  95. package/lib/commands/simply/cicd/sfdx-dependabot.d.ts +84 -0
  96. package/lib/commands/simply/cicd/sfdx-dependabot.js +469 -0
  97. package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -0
  98. package/lib/common/build/cleanupScratchOrgs.d.ts +7 -0
  99. package/lib/common/build/cleanupScratchOrgs.js +91 -0
  100. package/lib/common/build/cleanupScratchOrgs.js.map +1 -0
  101. package/lib/common/build/createFallbackTag.d.ts +24 -0
  102. package/lib/common/build/createFallbackTag.js +96 -0
  103. package/lib/common/build/createFallbackTag.js.map +1 -0
  104. package/lib/common/build/createPackageVersion.d.ts +27 -0
  105. package/lib/common/build/createPackageVersion.js +164 -0
  106. package/lib/common/build/createPackageVersion.js.map +1 -0
  107. package/lib/common/build/createScratchOrg.d.ts +14 -0
  108. package/lib/common/build/createScratchOrg.js +191 -0
  109. package/lib/common/build/createScratchOrg.js.map +1 -0
  110. package/lib/common/build/deleteScratchOrg.d.ts +12 -0
  111. package/lib/common/build/deleteScratchOrg.js +58 -0
  112. package/lib/common/build/deleteScratchOrg.js.map +1 -0
  113. package/lib/common/build/determinePackageChanges.d.ts +13 -0
  114. package/lib/common/build/determinePackageChanges.js +98 -0
  115. package/lib/common/build/determinePackageChanges.js.map +1 -0
  116. package/lib/common/build/devHubs.d.ts +8 -0
  117. package/lib/common/build/devHubs.js +30 -0
  118. package/lib/common/build/devHubs.js.map +1 -0
  119. package/lib/common/build/flags.d.ts +36 -0
  120. package/lib/common/build/flags.js +120 -0
  121. package/lib/common/build/flags.js.map +1 -0
  122. package/lib/common/build/flexipageDelta.d.ts +31 -0
  123. package/lib/common/build/flexipageDelta.js +92 -0
  124. package/lib/common/build/flexipageDelta.js.map +1 -0
  125. package/lib/common/build/flowDelta.d.ts +30 -0
  126. package/lib/common/build/flowDelta.js +91 -0
  127. package/lib/common/build/flowDelta.js.map +1 -0
  128. package/lib/common/build/installDependencies.d.ts +7 -0
  129. package/lib/common/build/installDependencies.js +36 -0
  130. package/lib/common/build/installDependencies.js.map +1 -0
  131. package/lib/common/build/lwcJest.d.ts +9 -0
  132. package/lib/common/build/lwcJest.js +36 -0
  133. package/lib/common/build/lwcJest.js.map +1 -0
  134. package/lib/common/build/pushScratch.d.ts +8 -0
  135. package/lib/common/build/pushScratch.js +63 -0
  136. package/lib/common/build/pushScratch.js.map +1 -0
  137. package/lib/common/build/scratchOrgInfo.d.ts +10 -0
  138. package/lib/common/build/scratchOrgInfo.js +21 -0
  139. package/lib/common/build/scratchOrgInfo.js.map +1 -0
  140. package/lib/common/build/skipGuard.d.ts +8 -0
  141. package/lib/common/build/skipGuard.js +41 -0
  142. package/lib/common/build/skipGuard.js.map +1 -0
  143. package/lib/common/build/testScratch.d.ts +14 -0
  144. package/lib/common/build/testScratch.js +45 -0
  145. package/lib/common/build/testScratch.js.map +1 -0
  146. package/lib/common/deploy/deployCommon.d.ts +101 -0
  147. package/lib/common/deploy/deployCommon.js +361 -0
  148. package/lib/common/deploy/deployCommon.js.map +1 -0
  149. package/lib/common/deploy/deployHappySoup.d.ts +54 -0
  150. package/lib/common/deploy/deployHappySoup.js +143 -0
  151. package/lib/common/deploy/deployHappySoup.js.map +1 -0
  152. package/lib/common/deploy/deployProject.d.ts +24 -0
  153. package/lib/common/deploy/deployProject.js +114 -0
  154. package/lib/common/deploy/deployProject.js.map +1 -0
  155. package/lib/common/deploy/flags.d.ts +34 -0
  156. package/lib/common/deploy/flags.js +91 -0
  157. package/lib/common/deploy/flags.js.map +1 -0
  158. package/lib/common/deploy/runDeployStage.d.ts +16 -0
  159. package/lib/common/deploy/runDeployStage.js +65 -0
  160. package/lib/common/deploy/runDeployStage.js.map +1 -0
  161. package/lib/common/deploy/stageCommand.d.ts +106 -0
  162. package/lib/common/deploy/stageCommand.js +131 -0
  163. package/lib/common/deploy/stageCommand.js.map +1 -0
  164. package/lib/common/deploy/validate.d.ts +11 -0
  165. package/lib/common/deploy/validate.js +54 -0
  166. package/lib/common/deploy/validate.js.map +1 -0
  167. package/lib/common/env.d.ts +9 -0
  168. package/lib/common/env.js +47 -0
  169. package/lib/common/env.js.map +1 -0
  170. package/lib/common/exec/sfCli.d.ts +27 -0
  171. package/lib/common/exec/sfCli.js +50 -0
  172. package/lib/common/exec/sfCli.js.map +1 -0
  173. package/lib/common/flags/env.d.ts +44 -0
  174. package/lib/common/flags/env.js +81 -0
  175. package/lib/common/flags/env.js.map +1 -0
  176. package/lib/common/git.d.ts +19 -0
  177. package/lib/common/git.js +79 -0
  178. package/lib/common/git.js.map +1 -0
  179. package/lib/common/logger.d.ts +10 -0
  180. package/lib/common/logger.js +33 -0
  181. package/lib/common/logger.js.map +1 -0
  182. package/lib/common/notify/getCommitStories.d.ts +16 -0
  183. package/lib/common/notify/getCommitStories.js +69 -0
  184. package/lib/common/notify/getCommitStories.js.map +1 -0
  185. package/lib/common/notify/renderTemplate.d.ts +3 -0
  186. package/lib/common/notify/renderTemplate.js +24 -0
  187. package/lib/common/notify/renderTemplate.js.map +1 -0
  188. package/lib/common/notify/sendNotification.d.ts +2 -0
  189. package/lib/common/notify/sendNotification.js +50 -0
  190. package/lib/common/notify/sendNotification.js.map +1 -0
  191. package/lib/common/notify/templates.d.ts +11 -0
  192. package/lib/common/notify/templates.js +85 -0
  193. package/lib/common/notify/templates.js.map +1 -0
  194. package/lib/common/schemas/deployConfig.d.ts +25 -0
  195. package/lib/common/schemas/deployConfig.js +55 -0
  196. package/lib/common/schemas/deployConfig.js.map +1 -0
  197. package/lib/common/schemas/deployProgress.d.ts +10 -0
  198. package/lib/common/schemas/deployProgress.js +27 -0
  199. package/lib/common/schemas/deployProgress.js.map +1 -0
  200. package/lib/common/schemas/deployRules.d.ts +34 -0
  201. package/lib/common/schemas/deployRules.js +40 -0
  202. package/lib/common/schemas/deployRules.js.map +1 -0
  203. package/lib/common/sfApex.d.ts +22 -0
  204. package/lib/common/sfApex.js +158 -0
  205. package/lib/common/sfApex.js.map +1 -0
  206. package/lib/common/sfAuth.d.ts +30 -0
  207. package/lib/common/sfAuth.js +99 -0
  208. package/lib/common/sfAuth.js.map +1 -0
  209. package/lib/common/sfConfig.d.ts +6 -0
  210. package/lib/common/sfConfig.js +45 -0
  211. package/lib/common/sfConfig.js.map +1 -0
  212. package/lib/common/sfPackages.d.ts +12 -0
  213. package/lib/common/sfPackages.js +53 -0
  214. package/lib/common/sfPackages.js.map +1 -0
  215. package/lib/common/sfPlugins.d.ts +11 -0
  216. package/lib/common/sfPlugins.js +134 -0
  217. package/lib/common/sfPlugins.js.map +1 -0
  218. package/lib/common/sfdxDependabot/updater.d.ts +14 -0
  219. package/lib/common/sfdxDependabot/updater.js +94 -0
  220. package/lib/common/sfdxDependabot/updater.js.map +1 -0
  221. package/lib/common/vcs/gitlab.d.ts +21 -0
  222. package/lib/common/vcs/gitlab.js +208 -0
  223. package/lib/common/vcs/gitlab.js.map +1 -0
  224. package/lib/common/vcs/index.d.ts +4 -0
  225. package/lib/common/vcs/index.js +26 -0
  226. package/lib/common/vcs/index.js.map +1 -0
  227. package/lib/common/vcs/types.d.ts +69 -0
  228. package/lib/common/vcs/types.js +17 -0
  229. package/lib/common/vcs/types.js.map +1 -0
  230. package/lib/config/defaultDeploymentPlugins.d.ts +2 -0
  231. package/lib/config/defaultDeploymentPlugins.js +18 -0
  232. package/lib/config/defaultDeploymentPlugins.js.map +1 -0
  233. package/lib/config/trustedPlugins.d.ts +2 -0
  234. package/lib/config/trustedPlugins.js +18 -0
  235. package/lib/config/trustedPlugins.js.map +1 -0
  236. package/lib/index.d.ts +2 -0
  237. package/lib/index.js +17 -0
  238. package/lib/index.js.map +1 -0
  239. package/messages/simply.cicd.build.cleanup-scratch-orgs.md +11 -0
  240. package/messages/simply.cicd.build.create-fallback-tag.md +21 -0
  241. package/messages/simply.cicd.build.create-package-version.md +49 -0
  242. package/messages/simply.cicd.build.create-scratch.md +21 -0
  243. package/messages/simply.cicd.build.delete-scratch.md +13 -0
  244. package/messages/simply.cicd.build.determine-package-changes.md +15 -0
  245. package/messages/simply.cicd.build.generate-flexipage-diff.md +11 -0
  246. package/messages/simply.cicd.build.generate-flow-diff.md +11 -0
  247. package/messages/simply.cicd.build.install-dependencies.md +17 -0
  248. package/messages/simply.cicd.build.lwc-jest.md +11 -0
  249. package/messages/simply.cicd.build.md +75 -0
  250. package/messages/simply.cicd.build.push-scratch.md +21 -0
  251. package/messages/simply.cicd.build.test-scratch.md +17 -0
  252. package/messages/simply.cicd.deploy.happy-soup.deploy-unpackaged.md +11 -0
  253. package/messages/simply.cicd.deploy.happy-soup.deployment-close-out.md +39 -0
  254. package/messages/simply.cicd.deploy.happy-soup.install-packaged.md +15 -0
  255. package/messages/simply.cicd.deploy.happy-soup.post-deploy.md +11 -0
  256. package/messages/simply.cicd.deploy.happy-soup.post-destructive.md +11 -0
  257. package/messages/simply.cicd.deploy.happy-soup.pre-destructive.md +11 -0
  258. package/messages/simply.cicd.deploy.happy-soup.tag-deployment.md +35 -0
  259. package/messages/simply.cicd.deploy.happy-soup.validate.md +25 -0
  260. package/messages/simply.cicd.deploy.md +75 -0
  261. package/messages/simply.cicd.deploy.project.deploy-unpackaged.md +11 -0
  262. package/messages/simply.cicd.deploy.project.install-packaged.md +23 -0
  263. package/messages/simply.cicd.deploy.project.post-deploy.md +11 -0
  264. package/messages/simply.cicd.deploy.project.post-destructive.md +11 -0
  265. package/messages/simply.cicd.deploy.project.pre-destructive.md +11 -0
  266. package/messages/simply.cicd.deploy.project.run-apex-tests.md +15 -0
  267. package/messages/simply.cicd.deploy.project.validate.md +25 -0
  268. package/messages/simply.cicd.deploy.validate.md +25 -0
  269. package/messages/simply.cicd.md +3 -0
  270. package/messages/simply.cicd.notify.happy-soup.md +73 -0
  271. package/messages/simply.cicd.notify.project.md +125 -0
  272. package/messages/simply.cicd.notify.teams.md +27 -0
  273. package/messages/simply.cicd.sfdx-dependabot.md +91 -0
  274. package/package.json +214 -0
@@ -0,0 +1,75 @@
1
+ # flags.dev-hub-name.summary
2
+
3
+ Friendly name of a Dev Hub. Repeat this flag alongside --dev-hub-username, --dev-hub-client-id, and --dev-hub-instance-url (in the same order) for each Dev Hub to try.
4
+
5
+ # flags.dev-hub-username.summary
6
+
7
+ Username of a Dev Hub.
8
+
9
+ # flags.dev-hub-client-id.summary
10
+
11
+ Connected app client ID for a Dev Hub.
12
+
13
+ # flags.dev-hub-instance-url.summary
14
+
15
+ Login instance URL for a Dev Hub.
16
+
17
+ # flags.jwt-key-file.summary
18
+
19
+ Path to the JWT private key file used for authentication.
20
+
21
+ # flags.debug.summary
22
+
23
+ Enable verbose debug logging.
24
+
25
+ # flags.disabled.summary
26
+
27
+ Skip this job entirely, logging a warning instead of running it.
28
+
29
+ # flags.ci-commit-ref-name.summary
30
+
31
+ Git branch or ref name being built.
32
+
33
+ # flags.ci-pipeline-id.summary
34
+
35
+ CI pipeline ID, used to name the temporary authenticated git remote.
36
+
37
+ # flags.ci-project-path.summary
38
+
39
+ CI project's git path (e.g. group/project), used to build the authenticated git remote URL.
40
+
41
+ # flags.project-access-token.summary
42
+
43
+ Access token used to authenticate git remote operations (tagging, pushing).
44
+
45
+ # flags.vcs-host.summary
46
+
47
+ Hostname of the VCS instance hosting this project.
48
+
49
+ # flags.vcs-provider.summary
50
+
51
+ The VCS platform hosting this project.
52
+
53
+ # flags.diff-ci-project-id.summary
54
+
55
+ GitLab CI project ID.
56
+
57
+ # flags.diff-ci-merge-request-iid.summary
58
+
59
+ GitLab CI merge request internal ID.
60
+
61
+ # flags.diff-from.summary
62
+
63
+ Base commit SHA to diff from.
64
+
65
+ # flags.diff-to.summary
66
+
67
+ Head commit SHA to diff to.
68
+
69
+ # flags.diff-project-access-token.summary
70
+
71
+ Project access token used to post the diff results back to the merge request.
72
+
73
+ # flags.diff-out.summary
74
+
75
+ Output directory or file path for the delta results.
@@ -0,0 +1,21 @@
1
+ # summary
2
+
3
+ Push source to the scratch org created by `build create-scratch`.
4
+
5
+ # description
6
+
7
+ 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`.
8
+
9
+ Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
10
+
11
+ # flags.ignore-warnings.summary
12
+
13
+ Append --ignore-warnings to the underlying sf project deploy start call.
14
+
15
+ # flags.scratch-org-source-dir.summary
16
+
17
+ Source directory to push to the scratch org, in addition to the default package directory.
18
+
19
+ # examples
20
+
21
+ - <%= config.bin %> <%= command.id %> --jwt-key-file ./server.key
@@ -0,0 +1,17 @@
1
+ # summary
2
+
3
+ Run Apex tests against the scratch org created by `build create-scratch`.
4
+
5
+ # description
6
+
7
+ Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and runs its Apex tests with `RunLocalTests`.
8
+
9
+ Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
10
+
11
+ # flags.disable-apex-tests.summary
12
+
13
+ Skip running Apex tests, without skipping the rest of the job.
14
+
15
+ # examples
16
+
17
+ - <%= config.bin %> <%= command.id %> --jwt-key-file ./server.key
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the deploy-unpackaged stage of a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/unpackagedDeploy.sh` script (if present) for each configured deployment that participates in this stage, cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
@@ -0,0 +1,39 @@
1
+ # summary
2
+
3
+ Archive the deployment config file used for a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Fetches and switches to the commit ref, then copies the deployment config file that was used (either --deploy-release-date resolved to `deployment-configs/<date>.json`, or the explicit/derived deploy config file) to `config/deploy.json` and commits it. If no source file can be found, an existing obsolete `config/deploy.json` is removed instead. Both cases push the change with a `[skip ci]` commit message.
8
+
9
+ # flags.ci-commit-ref-name.summary
10
+
11
+ The commit ref (branch) to fetch and switch to before archiving.
12
+
13
+ # flags.ci-pipeline-id.summary
14
+
15
+ The CI pipeline ID, used to build the authenticated push remote.
16
+
17
+ # flags.ci-project-path.summary
18
+
19
+ The project path (e.g. group/project), used to build the authenticated push remote.
20
+
21
+ # flags.project-access-token.summary
22
+
23
+ A project access token with write access, used to push the archive commit.
24
+
25
+ # flags.deploy-release-date.summary
26
+
27
+ The release date (e.g. 2026-01-15) used to resolve the source file as `deployment-configs/<date>.json`, taking priority over --deploy-config-file.
28
+
29
+ # flags.deploy-config-file.summary
30
+
31
+ Path to the deployment configuration file to archive, if --deploy-release-date is not provided.
32
+
33
+ # flags.source-branch-name.summary
34
+
35
+ The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.
36
+
37
+ # examples
38
+
39
+ - <%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-pipeline-id 123 --ci-project-path group/project --project-access-token $PROJECT_ACCESS_TOKEN --deploy-release-date 2026-01-15
@@ -0,0 +1,15 @@
1
+ # summary
2
+
3
+ Install packaged dependencies into the target org for a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Authenticates to the target org and installs the packaged dependencies declared in `sfdx-project.json`.
8
+
9
+ # flags.install-type.summary
10
+
11
+ The type of dependency installation to perform.
12
+
13
+ # examples
14
+
15
+ - <%= config.bin %> <%= command.id %> --alias my-org
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the post-deploy stage of a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/postDeploy.sh` script (if present) for each configured deployment that participates in this stage, cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the post-destructive stage of a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/postDestructive.sh` script (if present) for each configured deployment that participates in this stage, cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the pre-destructive stage of a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/preDestructive.sh` script (if present) for each configured deployment that participates in this stage, cloning each repo fresh and resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
@@ -0,0 +1,35 @@
1
+ # summary
2
+
3
+ Tag the current commit with details about a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Authenticates to the target org, derives an org domain prefix from its instance URL, and creates an annotated git tag (`deployed--<org-domain-prefix>-<timestamp>`) recording the deployment time (America/New_York) and, if provided, the associated pipeline and merge request links. The tag is pushed to the source repository.
8
+
9
+ # flags.ci-merge-request-iid.summary
10
+
11
+ The merge request's internal ID (IID), used to build the merge request link in the tag message.
12
+
13
+ # flags.ci-merge-request-project-url.summary
14
+
15
+ The project's URL, used to build the merge request link in the tag message.
16
+
17
+ # flags.ci-pipeline-id.summary
18
+
19
+ The CI pipeline ID.
20
+
21
+ # flags.ci-pipeline-url.summary
22
+
23
+ The CI pipeline URL, included in the tag message if provided.
24
+
25
+ # flags.ci-project-path.summary
26
+
27
+ The project path (e.g. group/project), used to build the authenticated push remote.
28
+
29
+ # flags.project-access-token.summary
30
+
31
+ A project access token with write access, used to push the tag.
32
+
33
+ # examples
34
+
35
+ - <%= config.bin %> <%= command.id %> --alias my-org --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/group/project/-/pipelines/123 --ci-project-path group/project --ci-merge-request-iid 45 --ci-merge-request-project-url https://gitlab.example.com/group/project --project-access-token $PROJECT_ACCESS_TOKEN
@@ -0,0 +1,25 @@
1
+ # summary
2
+
3
+ Validate deployment configuration files for a happy-soup deployment.
4
+
5
+ # description
6
+
7
+ Validates the deployment config file (explicit, or derived from --source-branch-name) and, if --deploy-rules-file is given, the deployment rules file. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.
8
+
9
+ # flags.deploy-config-file.summary
10
+
11
+ Path to the deployment configuration file. If not provided, derived from --source-branch-name.
12
+
13
+ # flags.deploy-progress-file.summary
14
+
15
+ Path to the deployment progress file. Accepted for consistency with the other happy-soup deployment commands; not used by validation.
16
+
17
+ # flags.source-branch-name.summary
18
+
19
+ The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.
20
+
21
+ # examples
22
+
23
+ - <%= config.bin %> <%= command.id %> --source-branch-name release/uat
24
+
25
+ - <%= config.bin %> <%= command.id %> --deploy-config-file deployment-configs/uat.json --deploy-rules-file config/deploy-rules.json
@@ -0,0 +1,75 @@
1
+ # flags.alias.summary
2
+
3
+ Salesforce org alias.
4
+
5
+ # flags.auth-url.summary
6
+
7
+ Salesforce authorization (SFDX auth) URL, used as an alternative to JWT authentication.
8
+
9
+ # flags.client-id.summary
10
+
11
+ Connected app client ID, used for JWT authentication.
12
+
13
+ # flags.instance-url.summary
14
+
15
+ Salesforce login/instance URL, used for JWT authentication.
16
+
17
+ # flags.jwt-key-file.summary
18
+
19
+ Path to the JWT private key file.
20
+
21
+ # flags.username.summary
22
+
23
+ Salesforce username, used for JWT authentication.
24
+
25
+ # flags.debug.summary
26
+
27
+ Enable verbose debug logging.
28
+
29
+ # flags.vcs-host.summary
30
+
31
+ The source-control host to talk to (e.g. gitlab.com).
32
+
33
+ # flags.vcs-provider.summary
34
+
35
+ The source-control-hosting platform to talk to.
36
+
37
+ # flags.test-level.summary
38
+
39
+ The Apex test level to run.
40
+
41
+ # flags.test-suite.summary
42
+
43
+ The Apex test suite to run. If specified, overrides --test-level.
44
+
45
+ # flags.tests.summary
46
+
47
+ Specific Apex tests to run.
48
+
49
+ # flags.start-from.summary
50
+
51
+ Start (or resume) the deployment from a specific job name, overriding the progress file.
52
+
53
+ # flags.deploy-progress-file.summary
54
+
55
+ Path to the deployment progress file.
56
+
57
+ # flags.deploy-rules-file.summary
58
+
59
+ Path to the deployment rules file.
60
+
61
+ # flags.ci-job-token.summary
62
+
63
+ The CI job token used to authenticate read-only repository clones.
64
+
65
+ # flags.project-deploy-config-file.summary
66
+
67
+ Path to the deployment configuration file.
68
+
69
+ # flags.happy-soup-deploy-config-file.summary
70
+
71
+ Path to the deployment configuration file. If not provided, derived from --source-branch-name.
72
+
73
+ # flags.source-branch-name.summary
74
+
75
+ The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the deploy-unpackaged stage of a project deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/unpackagedDeploy.sh` script (if present) against the local project directory, resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,23 @@
1
+ # summary
2
+
3
+ Install packaged dependencies and the project's own package into the target org.
4
+
5
+ # description
6
+
7
+ Installs the packaged dependencies declared in `sfdx-project.json`, then installs the project's own main package — prioritizing --subscriber-package-version-id if given, otherwise looking for a `04t...` package ID annotated on the git tag pointing at HEAD.
8
+
9
+ # flags.deploy-config-file.summary
10
+
11
+ Path to the deployment configuration file.
12
+
13
+ # flags.subscriber-package-version-id.summary
14
+
15
+ The subscriber package version ID (04t...) to install. If not provided, the ID is looked up from the git tag annotation at HEAD.
16
+
17
+ # flags.install-type.summary
18
+
19
+ The type of dependency installation to perform.
20
+
21
+ # examples
22
+
23
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the post-deploy stage of a project deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/postDeploy.sh` script (if present) against the local project directory, resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the post-destructive stage of a project deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/postDestructive.sh` script (if present) against the local project directory, resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,11 @@
1
+ # summary
2
+
3
+ Run the pre-destructive stage of a project deployment.
4
+
5
+ # description
6
+
7
+ Runs the `bin/preDestructive.sh` script (if present) against the local project directory, resuming from the deployment progress file unless --start-from is given.
8
+
9
+ # examples
10
+
11
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,15 @@
1
+ # summary
2
+
3
+ Run Apex tests against the target org for a project deployment.
4
+
5
+ # description
6
+
7
+ Authenticates to the target org and runs its Apex tests, if any exist in the project's package directories.
8
+
9
+ # flags.deploy-config-file.summary
10
+
11
+ Path to the deployment configuration file.
12
+
13
+ # examples
14
+
15
+ - <%= config.bin %> <%= command.id %> --ci-job-token $CI_JOB_TOKEN --alias my-org
@@ -0,0 +1,25 @@
1
+ # summary
2
+
3
+ Validate deployment configuration files for a project deployment.
4
+
5
+ # description
6
+
7
+ Validates `config/deploy.json` (or the path given by --deploy-config-file) and, if --deploy-rules-file is given, the deployment rules file. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.
8
+
9
+ # flags.deploy-config-file.summary
10
+
11
+ Path to the deployment configuration file.
12
+
13
+ # flags.deploy-progress-file.summary
14
+
15
+ Path to the deployment progress file. Accepted for consistency with the other project deployment commands; not used by validation.
16
+
17
+ # flags.deploy-rules-file.summary
18
+
19
+ Path to the deployment rules file.
20
+
21
+ # examples
22
+
23
+ - <%= config.bin %> <%= command.id %>
24
+
25
+ - <%= config.bin %> <%= command.id %> --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
@@ -0,0 +1,25 @@
1
+ # summary
2
+
3
+ Validate deployment configuration files against their JSON schemas.
4
+
5
+ # description
6
+
7
+ Validates the deployment config file (`deploy.json`) and deployment rules file independently against their schemas. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.
8
+
9
+ This is the generic form of the command, with no namespace-specific default file paths — see `deploy project validate` and `deploy happy-soup validate` for versions with sensible defaults for those deployment styles.
10
+
11
+ # flags.deploy-config-file.summary
12
+
13
+ Path to the deployment configuration file.
14
+
15
+ # flags.deploy-rules-file.summary
16
+
17
+ Path to the deployment rules file.
18
+
19
+ # flags.source-branch-name.summary
20
+
21
+ The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.
22
+
23
+ # examples
24
+
25
+ - <%= config.bin %> <%= command.id %> --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
@@ -0,0 +1,3 @@
1
+ # summary
2
+
3
+ Commands for Salesforce CI/CD pipelines.
@@ -0,0 +1,73 @@
1
+ # summary
2
+
3
+ Send a happy-soup deployment stage notification to Microsoft Teams, without Jira story integration.
4
+
5
+ # description
6
+
7
+ 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.
8
+
9
+ # flags.after-script.summary
10
+
11
+ Run the after-stage notification logic.
12
+
13
+ # flags.before-script.summary
14
+
15
+ Run the before-stage (starting) notification logic.
16
+
17
+ # flags.ci-commit-ref-name.summary
18
+
19
+ The git branch or tag ref for this pipeline run.
20
+
21
+ # flags.ci-environment-name.summary
22
+
23
+ The name of the target CI environment.
24
+
25
+ # flags.ci-job-name.summary
26
+
27
+ The name of the current CI job.
28
+
29
+ # flags.ci-job-stage.summary
30
+
31
+ The stage of the current CI job.
32
+
33
+ # flags.ci-job-status.summary
34
+
35
+ The status of the current CI job (e.g. success, failed).
36
+
37
+ # flags.ci-pipeline-id.summary
38
+
39
+ The ID of the current CI pipeline.
40
+
41
+ # flags.ci-pipeline-url.summary
42
+
43
+ The URL of the current CI pipeline.
44
+
45
+ # flags.enabled.summary
46
+
47
+ Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.
48
+
49
+ # flags.teams-webhook-url.summary
50
+
51
+ One or more Teams webhook URLs to send the notification to.
52
+
53
+ # flags.notify-on-completion.summary
54
+
55
+ Only send a notification on the final job of the pipeline, suppressing per-stage notifications.
56
+
57
+ # flags.is-final-job.summary
58
+
59
+ 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.
60
+
61
+ # flags.debug.summary
62
+
63
+ Enable verbose debug logging.
64
+
65
+ # examples
66
+
67
+ - <%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --teams-webhook-url https://outlook.office.com/webhook/... --enabled
68
+
69
+ - <%= 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
70
+
71
+ # error.missingScriptFlag
72
+
73
+ Either --before-script or --after-script must be specified.