stages:
- Build_and_Deploy
Build_and_Deploy:
stage: Build_and_Deploy
image: node:10.18.0
only:
- master
tags:
- gitlab-org
script:
- echo CI Started
- npm i -g gulp
- npm install -g @pnp/office365-cli
- npm i
- gulp bundle --ship
- gulp package-solution --ship
- o365 login -t password -u uname -p pswd
- o365 spo app add -p ./sharepoint/solution/appname.sppkg --overwrite
- o365 spo app deploy --name appname.sppkg --appCatalogUrl https://testaccount.sharepoint.com/sites/appcatalog/ --skipFeatureDeployment
allow_failure: false
Friday, 24 April 2020
CI CD with GitLab (.gitlab-ci.yml)
Monday, 17 February 2020
SP Online - Handling external sharing using power shell
//Get all site collection
$SiteColl = Get-SPOSite -Limit ALL
//Disable external sharing for all the site/site collection in the tenant
foreach($Site in $SiteColl)
{
Write-host $Site.Url
Set-SPOSite -Identity $Site.Url -SharingCapability Disabled
}
//Disable external sharing
Set-SPOSite -Identity "https://xxxx.sharepoint.com/sites/xxx" -SharingCapability Disabled
//To get Detailed list of sp site
Get-SPOSite -Identity "https://xxxx/sites/xxx" -detailed |fl
Subscribe to:
Posts (Atom)