You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/spfx/toolchain/implement-ci-cd-with-azure-devops.md
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -205,8 +205,8 @@ The Office 365 Common Language Interface (CLI) is an open source project built b
205
205
> [!NOTE]
206
206
> Learn more about the [Office 365 CLI](https://pnp.github.io/office365-cli/)
207
207
208
-
### Connecting to the App Catalog
209
-
Before using the App Catalog in your deployment environment, you first need to authenticate against the App Catalog of your tenant. To do so, add a `Command Line` task and paste in the following command into the `script` field `o365 spo login https://$(tenant).sharepoint.com/$(catalogsite) --authType password --userName $(username) --password $(password)
208
+
### Connecting to SharePoint Online
209
+
Before using the App Catalog in your deployment environment, you first need to authenticate against the App Catalog of your tenant. To do so, add a `Command Line` task and paste in the following command into the `script` field `o365 login -t password -u $(username) -p $(password)
210
210
`
211
211

212
212
@@ -220,15 +220,21 @@ Upload the solution package to your App Catalog by adding another `Command Line`
220
220
> [!NOTE]
221
221
> The path of the package depends on your solution name (see your project configuration) as well as the `Source Alias` you defined earlier, make sure they match.
222
222
223
+
> [!NOTE]
224
+
> You can upload a solution to a site collection app catalog by adding `--appCatalogUrl https://$(tenant).sharepoint.com/$(catalogsite) --scope site`
225
+
223
226

224
227
225
228
### Deploying the Application
226
229
227
-
The final step in the setup is to deploy the application to the App Catalog to make it available to all site collections within the tenant as its latest version. Add another `Command Line` task and paste the following command line in the `Script` field `o365 spo app deploy --name sp-fx-devops.sppkg --appCatalogUrl https://$(tenant).sharepoint.com/$(catalogsite)`
230
+
The final step in the setup is to deploy the application to the App Catalog to make it available to all site collections within the tenant as its latest version. Add another `Command Line` task and paste the following command line in the `Script` field `o365 spo app deploy --name sp-fx-devops.sppkg`
228
231
229
232
> [!NOTE]
230
233
> Make sure you update the package name.
231
234
235
+
> [!NOTE]
236
+
> You can deploy a solution from a site collection app catalog by adding `--appCatalogUrl https://$(tenant).sharepoint.com/$(catalogsite) --scope site`
237
+
232
238

233
239
234
240
### Setting the Variables for the Environment
@@ -237,10 +243,10 @@ The tasks you configured in the last step rely on Azure DevOps process variables
237
243
Add the following variables
238
244
| Name | Value |
239
245
| ------ | ------ |
240
-
| catalogsite | Server relative Path of the App Catalog Site eg `sites/appcatalog`|
246
+
| catalogsite |Optional. Server relative Path of the App Catalog Site eg `sites/appcatalog` when uploading to a [site collection App Catalog](../../general-development/site-collection-app-catalog)|
241
247
| password | Password of the user with administrative permissions on the tenant, do not forget to check the lockpad to mask it to other users |
242
248
| username | Username of the user with administrative permissions on the tenant |
243
-
| tenant | Tenant name in https://tenant.sharepoint.com eg `tenant`|
249
+
| tenant |Optional. Tenant name in https://tenant.sharepoint.com eg `tenant` when uploading to a site collection App Catalog|
0 commit comments