Skip to content

Commit

Permalink
Add Schedule parameter to Publish-PerTenantExtensionApps (#3401)
Browse files Browse the repository at this point in the history
suggestion to add a schedule parameter to allow deployment of the app to
the next major version via CI/CD Pipeline

---------

Co-authored-by: Freddy Kristiansen <[email protected]>
  • Loading branch information
M4fin and freddydk authored Sep 5, 2024
1 parent 9aeb171 commit d58e29a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Issue 3613 aka.ms/getbc fallback to NAVUserPassword because token expired when s
Issue #3617 Regression File Newtonsoft.Json.dll not found when copying item for New-BcCompilerFolder
Remove functions for supporting Alpaca and Cloud Containers - integration between alpaca and cloud containers with AL-Go for GitHub will NOT be done through BcContainerHelper
Issue #2623 New-BcContainer for BC25.1 or BC26 insider with includeTestToolkit AI Test Toolkit dependency missing
Add Schedule parameter to Publish-PerTenantExtensionApps

6.0.20
Add trustServerCertificate is the parameter exists in various functions that might be running on the host
Expand Down
7 changes: 7 additions & 0 deletions Saas/Publish-PerTenantExtensionApps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ function Publish-PerTenantExtensionApps {
$appFiles,
[ValidateSet('Add','Force')]
[string] $schemaSyncMode = 'Add',
[ValidateSet('','Current version','Next minor version','Next major version')]
[string] $schedule = '',
[switch] $useNewLine,
[switch] $hideInstalledExtensionsOutput
)
Expand Down Expand Up @@ -119,6 +121,11 @@ try {
throw 'SchemaSyncMode Force is not supported before version 21.2'
}
}

if($schedule) {
$body."schedule" = $schedule
}

$ifMatchHeader = @{ "If-Match" = '*'}
$jsonHeader = @{ "Content-Type" = 'application/json'}
$streamHeader = @{ "Content-Type" = 'application/octet-stream'}
Expand Down

0 comments on commit d58e29a

Please sign in to comment.