@simplysf/simply-cicd 0.6.1 → 0.8.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 +137 -271
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.d.ts +1 -5
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js +2 -5
- package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js.map +1 -1
- package/lib/commands/simply/cicd/build/create-package-version.d.ts +1 -4
- package/lib/commands/simply/cicd/build/create-package-version.js +5 -19
- package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -1
- package/lib/commands/simply/cicd/build/create-scratch.d.ts +1 -5
- package/lib/commands/simply/cicd/build/create-scratch.js +2 -6
- package/lib/commands/simply/cicd/build/create-scratch.js.map +1 -1
- package/lib/commands/simply/cicd/build/delete-scratch.d.ts +2 -5
- package/lib/commands/simply/cicd/build/delete-scratch.js +3 -5
- package/lib/commands/simply/cicd/build/delete-scratch.js.map +1 -1
- package/lib/commands/simply/cicd/build/install-dependencies.d.ts +1 -1
- package/lib/commands/simply/cicd/build/push-scratch.d.ts +1 -1
- package/lib/commands/simply/cicd/build/test-scratch.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +2 -9
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +4 -19
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js +0 -5
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js.map +1 -1
- package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/install-packaged.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/install-packaged.js +0 -5
- package/lib/commands/simply/cicd/deploy/project/install-packaged.js.map +1 -1
- package/lib/commands/simply/cicd/deploy/project/post-deploy.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/post-destructive.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/pre-destructive.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.d.ts +1 -6
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js +0 -5
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js.map +1 -1
- package/lib/commands/simply/cicd/notify/project.d.ts +1 -7
- package/lib/commands/simply/cicd/notify/project.js +4 -31
- package/lib/commands/simply/cicd/notify/project.js.map +1 -1
- package/lib/common/build/cleanupScratchOrgs.d.ts +6 -7
- package/lib/common/build/cleanupScratchOrgs.js +10 -10
- package/lib/common/build/cleanupScratchOrgs.js.map +1 -1
- package/lib/common/build/createPackageVersion.d.ts +2 -4
- package/lib/common/build/createPackageVersion.js +8 -11
- package/lib/common/build/createPackageVersion.js.map +1 -1
- package/lib/common/build/createScratchOrg.d.ts +3 -3
- package/lib/common/build/createScratchOrg.js +11 -12
- package/lib/common/build/createScratchOrg.js.map +1 -1
- package/lib/common/build/deleteScratchOrg.d.ts +6 -5
- package/lib/common/build/deleteScratchOrg.js +23 -19
- package/lib/common/build/deleteScratchOrg.js.map +1 -1
- package/lib/common/build/devHubs.d.ts +9 -5
- package/lib/common/build/devHubs.js +25 -13
- package/lib/common/build/devHubs.js.map +1 -1
- package/lib/common/build/flags.d.ts +15 -6
- package/lib/common/build/flags.js +16 -17
- package/lib/common/build/flags.js.map +1 -1
- package/lib/common/build/installDependencies.d.ts +2 -1
- package/lib/common/build/installDependencies.js +2 -5
- package/lib/common/build/installDependencies.js.map +1 -1
- package/lib/common/build/pushScratch.d.ts +2 -1
- package/lib/common/build/pushScratch.js +2 -5
- package/lib/common/build/pushScratch.js.map +1 -1
- package/lib/common/build/scratchOrgAuth.d.ts +18 -0
- package/lib/common/build/scratchOrgAuth.js +52 -0
- package/lib/common/build/scratchOrgAuth.js.map +1 -0
- package/lib/common/build/scratchOrgInfo.d.ts +4 -0
- package/lib/common/build/scratchOrgInfo.js.map +1 -1
- package/lib/common/build/testScratch.d.ts +2 -1
- package/lib/common/build/testScratch.js +2 -5
- package/lib/common/build/testScratch.js.map +1 -1
- package/lib/common/deploy/deployCommon.d.ts +12 -10
- package/lib/common/deploy/deployCommon.js +10 -13
- package/lib/common/deploy/deployCommon.js.map +1 -1
- package/lib/common/deploy/deployHappySoup.d.ts +1 -3
- package/lib/common/deploy/deployHappySoup.js +8 -17
- package/lib/common/deploy/deployHappySoup.js.map +1 -1
- package/lib/common/deploy/deployProject.js +1 -3
- package/lib/common/deploy/deployProject.js.map +1 -1
- package/lib/common/deploy/flags.d.ts +6 -7
- package/lib/common/deploy/flags.js +9 -12
- package/lib/common/deploy/flags.js.map +1 -1
- package/lib/common/deploy/stageCommand.d.ts +3 -18
- package/lib/common/deploy/stageCommand.js +0 -10
- package/lib/common/deploy/stageCommand.js.map +1 -1
- package/lib/common/notify/projectNotification.d.ts +5 -17
- package/lib/common/notify/projectNotification.js +24 -51
- package/lib/common/notify/projectNotification.js.map +1 -1
- package/lib/common/sfAuth.d.ts +0 -11
- package/lib/common/sfAuth.js +0 -21
- package/lib/common/sfAuth.js.map +1 -1
- package/lib/common/sfPackages.d.ts +2 -5
- package/lib/common/sfPackages.js +8 -25
- package/lib/common/sfPackages.js.map +1 -1
- package/messages/simply.cicd.build.cleanup-scratch-orgs.md +2 -2
- package/messages/simply.cicd.build.create-package-version.md +3 -11
- package/messages/simply.cicd.build.create-scratch.md +2 -2
- package/messages/simply.cicd.build.delete-scratch.md +2 -2
- package/messages/simply.cicd.build.md +3 -15
- package/messages/simply.cicd.deploy.happy-soup.install-packaged.md +3 -11
- package/messages/simply.cicd.notify.project.md +4 -28
- package/package.json +3 -3
|
@@ -20,17 +20,9 @@ Source trigger of the CI pipeline (e.g. merge_request_event). When set to merge_
|
|
|
20
20
|
|
|
21
21
|
URL of the CI pipeline, used as the package version's description.
|
|
22
22
|
|
|
23
|
-
# flags.packaging-devhub
|
|
23
|
+
# flags.packaging-devhub.summary
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# flags.packaging-devhub-client-id.summary
|
|
28
|
-
|
|
29
|
-
Connected app client ID for the packaging Dev Hub.
|
|
30
|
-
|
|
31
|
-
# flags.packaging-devhub-instance-url.summary
|
|
32
|
-
|
|
33
|
-
Login instance URL for the packaging Dev Hub.
|
|
25
|
+
Alias of the Dev Hub used for packaging operations like package version creation. Must already be authenticated.
|
|
34
26
|
|
|
35
27
|
# flags.always-create-package.summary
|
|
36
28
|
|
|
@@ -46,4 +38,4 @@ Prefix identifying release branches. Determines whether this build creates a pac
|
|
|
46
38
|
|
|
47
39
|
# examples
|
|
48
40
|
|
|
49
|
-
- <%= 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
|
|
41
|
+
- <%= 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
|
|
@@ -4,7 +4,7 @@ Create a scratch org, trying each configured Dev Hub in order.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub
|
|
7
|
+
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`.
|
|
8
8
|
|
|
9
9
|
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
10
10
|
|
|
@@ -18,4 +18,4 @@ Duration of the scratch org in days.
|
|
|
18
18
|
|
|
19
19
|
# examples
|
|
20
20
|
|
|
21
|
-
- <%= config.bin %> <%= command.id %> --dev-hub
|
|
21
|
+
- <%= config.bin %> <%= command.id %> --dev-hub my-devhub
|
|
@@ -4,10 +4,10 @@ Delete the scratch org created by `build create-scratch`.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to
|
|
7
|
+
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.
|
|
8
8
|
|
|
9
9
|
Skipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).
|
|
10
10
|
|
|
11
11
|
# examples
|
|
12
12
|
|
|
13
|
-
- <%= config.bin %> <%= command.id %> --dev-hub
|
|
13
|
+
- <%= config.bin %> <%= command.id %> --dev-hub my-devhub
|
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
# flags.dev-hub
|
|
1
|
+
# flags.dev-hub.summary
|
|
2
2
|
|
|
3
|
-
|
|
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.
|
|
3
|
+
Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.
|
|
16
4
|
|
|
17
5
|
# flags.jwt-key-file.summary
|
|
18
6
|
|
|
19
|
-
Path to the JWT private key file used
|
|
7
|
+
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.
|
|
20
8
|
|
|
21
9
|
# flags.debug.summary
|
|
22
10
|
|
|
@@ -4,23 +4,15 @@ Install packaged dependencies into the target org for a happy-soup deployment.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Installs the packaged dependencies declared in `sfdx-project.json` into the target org (`--alias`), which must already be authenticated. For every dependency that upgrades an already-installed package, records the previous/target version and origin commit information to the deploy progress file, for `notify happy-soup` to look up related stories from later.
|
|
8
8
|
|
|
9
9
|
# flags.install-type.summary
|
|
10
10
|
|
|
11
11
|
The type of dependency installation to perform.
|
|
12
12
|
|
|
13
|
-
# flags.packaging-devhub
|
|
13
|
+
# flags.packaging-devhub.summary
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# flags.packaging-devhub-instance-url.summary
|
|
18
|
-
|
|
19
|
-
Login instance URL for the packaging DevHub.
|
|
20
|
-
|
|
21
|
-
# flags.packaging-devhub-username.summary
|
|
22
|
-
|
|
23
|
-
Username for JWT authentication to the packaging DevHub. Required (along with the other `--packaging-devhub-*` flags) to look up the previous/target version's origin commit information for upgraded packages; omitted entirely (with a warning) when not provided.
|
|
15
|
+
Alias of the Dev Hub used to look up package version information for upgraded packages. Must already be authenticated. Omitted entirely (with a warning) when not provided, skipping origin lookup for upgraded packages.
|
|
24
16
|
|
|
25
17
|
# examples
|
|
26
18
|
|
|
@@ -16,7 +16,7 @@ Run the before-deployment setup logic (resolves and records package versions).
|
|
|
16
16
|
|
|
17
17
|
# flags.alias.summary
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Alias of the target Salesforce org to query for the previously installed package version. Must already be authenticated.
|
|
20
20
|
|
|
21
21
|
# flags.ci-commit-ref-name.summary
|
|
22
22
|
|
|
@@ -50,30 +50,14 @@ The URL of the current CI pipeline.
|
|
|
50
50
|
|
|
51
51
|
The project title shown in the notification card's heading.
|
|
52
52
|
|
|
53
|
-
# flags.
|
|
53
|
+
# flags.packaging-devhub.summary
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
# flags.packaging-devhub-client-id.summary
|
|
58
|
-
|
|
59
|
-
Connected app client ID for JWT authentication to the packaging DevHub.
|
|
60
|
-
|
|
61
|
-
# flags.packaging-devhub-instance-url.summary
|
|
62
|
-
|
|
63
|
-
Login instance URL for the packaging DevHub.
|
|
64
|
-
|
|
65
|
-
# flags.packaging-devhub-username.summary
|
|
66
|
-
|
|
67
|
-
Username for JWT authentication to the packaging DevHub.
|
|
55
|
+
Alias of the Dev Hub used to look up target package version information. Must already be authenticated.
|
|
68
56
|
|
|
69
57
|
# flags.enabled.summary
|
|
70
58
|
|
|
71
59
|
Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.
|
|
72
60
|
|
|
73
|
-
# flags.instance-url.summary
|
|
74
|
-
|
|
75
|
-
Login instance URL for the target org.
|
|
76
|
-
|
|
77
61
|
# flags.alm-base-url.summary
|
|
78
62
|
|
|
79
63
|
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.
|
|
@@ -86,10 +70,6 @@ Fallback project key(s) used to search commit messages for issue references, if
|
|
|
86
70
|
|
|
87
71
|
The issue tracker whose reference format to look for in commit messages.
|
|
88
72
|
|
|
89
|
-
# flags.jwt-key-file.summary
|
|
90
|
-
|
|
91
|
-
Path to the JWT private key file, used for both the target org and packaging DevHub authentication.
|
|
92
|
-
|
|
93
73
|
# flags.prev-installed-package-version.summary
|
|
94
74
|
|
|
95
75
|
The previously installed package version. Only needed if re-running --after-script without having run --before-script first in the same job.
|
|
@@ -106,17 +86,13 @@ The target package version. Only needed if re-running --after-script without hav
|
|
|
106
86
|
|
|
107
87
|
One or more Teams webhook URLs to send the notification to.
|
|
108
88
|
|
|
109
|
-
# flags.username.summary
|
|
110
|
-
|
|
111
|
-
Username for JWT authentication to the target org.
|
|
112
|
-
|
|
113
89
|
# flags.debug.summary
|
|
114
90
|
|
|
115
91
|
Enable verbose debug logging.
|
|
116
92
|
|
|
117
93
|
# examples
|
|
118
94
|
|
|
119
|
-
- <%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --
|
|
95
|
+
- <%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --enabled
|
|
120
96
|
|
|
121
97
|
- <%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
122
98
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-cicd",
|
|
3
3
|
"description": "Commands for Salesforce CI/CD pipelines",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-node",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-node/issues",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@salesforce/core": "^8.30.0",
|
|
61
61
|
"@salesforce/sf-plugins-core": "^12.2.16",
|
|
62
62
|
"@salesforce/ts-types": "^2.0.12",
|
|
63
|
-
"@simplysf/simply-core": "^1.
|
|
63
|
+
"@simplysf/simply-core": "^1.2.0",
|
|
64
64
|
"chalk": "^5.6.2",
|
|
65
65
|
"execa": "^8.0.1",
|
|
66
66
|
"handlebars": "^4.7.9",
|
|
@@ -211,5 +211,5 @@
|
|
|
211
211
|
"output": []
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
|
-
"gitHead": "
|
|
214
|
+
"gitHead": "0c114f6ca8172a762d309ee3617d085ec11d90d5"
|
|
215
215
|
}
|