Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docIndex to kick off the docs SDK CI run for main #47434

Merged
merged 6 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eng/dailydocsconfig.json → eng/docsSDKCIConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"TFM": "net471",
"target_repo": {
"url": "https://github.com/Azure/azure-docs-sdk-dotnet",
"branch": "%%DailyDocsBranchName%%",
"branch": "%%DocsBranchName%%",
"folder": "xml"
},
"source_repo": {
"url": "https://github.com/Azure/azure-docs-sdk-dotnet",
"branch": "%%DailyDocsBranchName%%",
"branch": "%%DocsBranchName%%",
"csvPath": "bundlepackages"
},
"import_content": true
Expand Down
24 changes: 23 additions & 1 deletion eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ parameters:
type: boolean
default: true

- name: StartMainSDKCIRun
displayName: |
Kick off the main SDK CI docs run when manually running the pipeline
type: boolean
default: false

- name: ForceDailyUpdate
displayName: |
Force the daily branch update (includes starting daily branch run).
Expand Down Expand Up @@ -114,6 +120,22 @@ jobs:
TargetRepoOwner: $(DocRepoOwner)
WorkingDirectory: $(DocRepoLocation)

- task: AzureCLI@2
displayName: Queue Docs CI build
JimSuplizio marked this conversation as resolved.
Show resolved Hide resolved
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(${{ parameters.StartMainSDKCIRun }}, true)))
inputs:
azureSubscription: msdocs-apidrop-connection
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
$accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv
JimSuplizio marked this conversation as resolved.
Show resolved Hide resolved
$buildParamJson = (@{ params = (Get-Content ./eng/docsSDKCIConfig.json -Raw) -replace '%%DocsBranchName%%', "main" } | ConvertTo-Json)
eng/common/scripts/Queue-Pipeline.ps1 `
-Organization "apidrop" `
-Project "Content%20CI" `
-DefinitionId 397 `
-BuildParametersJson $buildParamJson `
-BearerToken $accessToken

# The scenario for running a Manual build is normally only for the main updates. The daily build
# should really only get kicked off for scheduled runs.
Expand Down Expand Up @@ -200,7 +222,7 @@ jobs:
scriptLocation: inlineScript
inlineScript: |
$accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv
$buildParamJson = (@{ params = (Get-Content ./eng/dailydocsconfig.json -Raw) -replace '%%DailyDocsBranchName%%', "$(DailyDocsBranchName)" } | ConvertTo-Json)
$buildParamJson = (@{ params = (Get-Content ./eng/docsSDKCIConfig.json -Raw) -replace '%%DocsBranchName%%', "$(DailyDocsBranchName)" } | ConvertTo-Json)
eng/common/scripts/Queue-Pipeline.ps1 `
-Organization "apidrop" `
-Project "Content%20CI" `
Expand Down
Loading