Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
agocke committed Mar 22, 2024
1 parent b90a588 commit 6cc6b72
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ jobs:

- template: /eng/pipelines/common/templates/publish-build-artifacts.yml
parameters:
isOfficial: ${{ parameters.isOfficialBuild }}
isOfficialBuild: ${{ parameters.isOfficialBuild }}
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/'
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/templates/pipeline-with-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ parameters:
extends:
template: templateDispatch.yml
parameters:
${{ if eq(parameters.isOfficial, true) }}:
${{ if parameters.isOfficialBuild }}:
templatePath: template1es.yml
${{ if eq(parameters.isOfficial, false) }}:
${{ else }}:
templatePath: templatePublic.yml

stages: ${{ parameters.stages }}
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/templates/publish-build-artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
- name: isOfficial
- name: isOfficialBuild
type: boolean
- name: displayName
type: string
Expand All @@ -10,7 +10,7 @@ parameters:
default: ''

steps:
- ${{ if eq(parameters.isOfficial, 'true') }}:
- ${{ if parameters.isOfficialBuild }}:
- task: 1ES.PublishBuildArtifacts@1
displayName: ${{ parameters.displayName }}
inputs: ${{ parameters.inputs }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
type: string
- name: inputs
type: object
- name: isOfficial
- name: isOfficialBuild
type: boolean

steps:
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/templates/runtimes/build-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parameters:
- name: crossBuild
type: boolean
default: false
- name: isOfficial
- name: isOfficialBuild
type: boolean

### Build managed test components (native components are getting built as part
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- template: /eng/pipelines/common/templates/publish-pipeline-artifacts.yml
parameters:
displayName: Publish Logs
isOfficial: ${{ parameters.isOfficial }}
isOfficialBuild: ${{ parameters.isOfficialBuild }}
inputs:
targetPath: $(Build.SourcesDirectory)/artifacts/log
ArtifactName: '${{ parameters.runtimeFlavor }}_Common_Runtime_TestBuildLogs_Attempt$(System.JobAttempt)_AnyOS_AnyCPU_$(buildConfig)_${{ parameters.testGroup }}'
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/common/upload-artifact-step.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
- name: isOfficialBuild
- name: isOfficialBuildBuild
type: boolean
- name: rootFolder
type: string
Expand Down Expand Up @@ -40,7 +40,7 @@ steps:

- template: /eng/pipelines/common/templates/publish-build-artifacts.yml
parameters:
isOfficial: ${{ parameters.isOfficialBuild }}
isOfficialBuild: ${{ parameters.isOfficialBuild }}
displayName: 'Publish ${{ parameters.displayName }}'
inputs:
PathtoPublish: $(Build.StagingDirectory)/${{ parameters.artifactName }}${{ parameters.archiveExtension }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ steps:

- template: /eng/pipelines/common/templates/publish-build-artifacts.yml
parameters:
isOfficial: true
isOfficialBuild: true
displayName: Publish intermediate artifacts
inputs:
PathtoPublish: '$(Build.StagingDirectory)/IntermediateArtifacts'
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/common/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ variables:
- name: Codeql.Enabled
value: ${{ eq(variables['Build.DefinitionName'], 'dotnet-runtime-codeql') }}

- name: isOfficialBuild
- name: isOfficialBuildBuild
value: ${{ and(eq(variables['System.TeamProject'], 'internal'), eq(variables['Build.DefinitionName'], 'dotnet-runtime-official')) }}
- name: isRollingBuild
value: ${{ ne(variables['Build.Reason'], 'PullRequest') }}
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/runtime-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ variables:
extends:
template: /eng/pipelines/common/templates/pipeline-with-resources.yml
parameters:
isOfficial: true
isOfficialBuild: true
stages:
- stage: Build
jobs:
Expand Down

0 comments on commit 6cc6b72

Please sign in to comment.