Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
make the variables paremeters
  • Loading branch information
JimSuplizio committed Nov 25, 2024
commit 8f5f8f508a09051b0785bf243bc4fa6a57ea39c2
27 changes: 16 additions & 11 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
trigger: none

parameters:
- name: SkipMainUpdate
displayName: |
Skip updating main.
type: boolean
default: false

- name: ForceDailyUpdate
displayName: |
Force the daily branch update (includes starting daily branch run).
type: boolean
default: false


variables:
- template: /eng/pipelines/templates/variables/globals.yml
- template: /eng/pipelines/templates/variables/image.yml
Expand Down Expand Up @@ -49,15 +63,14 @@ jobs:
# made. These updates include new libraries and CSV updates in azure-sdk which, depending
# on the column(s) updated can cause anything from package deprecation to service level
# readme or ToC updates.
- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), ne(variables['Skip.MainUpdate'], 'true')) }}:
- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), ne(parameters.SkipMainUpdate, 'true')) }}:
- task: Powershell@2
inputs:
pwsh: true
filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1
arguments: >-
-DocRepoLocation $(DocRepoLocation)
displayName: Verify Required Docs Json Members
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -72,7 +85,6 @@ jobs:
filePath: eng/common/scripts/Update-DocsMsPackages.ps1
arguments: -DocRepoLocation $(DocRepoLocation)
displayName: Update Docs Onboarding for main branch
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -82,7 +94,6 @@ jobs:
-DocRepoLocation $(DocRepoLocation)
-ReadmeFolderRoot 'api/overview/azure'
displayName: Generate Service Level Readme for main branch
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -93,7 +104,6 @@ jobs:
-OutputLocation $(DocRepoLocation)/docs-ref-toc/reference-unified.yml
-ReadmeFolderRoot "api/overview/azure"
displayName: Generate ToC for main branch
condition: succeeded()

- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
parameters:
Expand All @@ -107,7 +117,7 @@ jobs:

# 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.
- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.DailyUpdate'], 'true')) }}:
- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), eq(parameters.ForceDailyUpdate, 'true')) }}:
- template: /eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml
parameters:
DailyBranchVariableName: DailyDocsBranchName
Expand Down Expand Up @@ -139,7 +149,6 @@ jobs:
filePath: eng/common/scripts/Update-DocsMsPackageMonikers.ps1
arguments: -DocRepoLocation $(DocRepoLocation)
displayName: Move deprecated packages to legacy moniker
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -151,7 +160,6 @@ jobs:
-DocRepoLocation $(DocRepoLocation)
-PackageSourceOverride $(PackageSourceOverride)
displayName: Update Docs Onboarding for Daily docs
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -161,7 +169,6 @@ jobs:
-DocRepoLocation $(DocRepoLocation)
-ReadmeFolderRoot 'api/overview/azure'
displayName: Generate Service Level Readme for Daily docs
condition: succeeded()

- task: Powershell@2
inputs:
Expand All @@ -173,7 +180,6 @@ jobs:
-ReadmeFolderRoot "api/overview/azure"
-PackageSourceOverride $(PackageSourceOverride)
displayName: Generate ToC for Daily docs
condition: succeeded()

- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
parameters:
Expand Down Expand Up @@ -201,4 +207,3 @@ jobs:
-DefinitionId 397 `
-BuildParametersJson $buildParamJson `
-BearerToken $accessToken
condition: succeeded()
Loading