Replace artifacts with direct code checkout

Replaces configuration fetching via build pipeline with
direct code checkout.

Signed-off-by: Petr Kotas <pkotas@redhat.com>
This commit is contained in:
Petr Kotas 2021-08-13 11:28:26 +02:00
Родитель 558fc5d024
Коммит 3e445902b6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9A2182A6A306C71D
4 изменённых файлов: 15 добавлений и 27 удалений

Просмотреть файл

@ -4,8 +4,8 @@ pr: none
parameters:
- name: location
- name: vsoConfigBuildID
- name: vsoDeployerBuildID
- name: configVersion
jobs:
- template: ./templates/template-job-deploy-azure-env.yml
@ -16,10 +16,9 @@ jobs:
locations:
- ${{ parameters.location }}
configFileName: $(config-file-name)
configVersion: ${{ parameters.configVersion }}
azureDevOpsJSONSPN: $(aro-v4-ci-devops-spn)
vsoProjectID: $(vso-project-id)
vsoConfigPipelineID: $(vso-config-pipeline-id)
vsoConfigBuildID: ${{ parameters.vsoConfigBuildID }}
vsoDeployerPipelineID: $(vso-deployer-pipeline-id)
vsoDeployerBuildID: ${{ parameters.vsoDeployerBuildID }}
azureDevOpsE2EJSONSPN: $(aro-v4-e2e-devops-spn)

Просмотреть файл

@ -6,9 +6,9 @@ parameters:
- name: vsoDeployerBuildID
type: string
default: latest
- name: vsoConfigBuildID
- name: configVersion
type: string
default: latest
default: int
stages:
- stage: Deploy_INT
@ -23,10 +23,9 @@ stages:
locations:
- eastus
configFileName: int-config.yaml
configVersion: ${{ parameters.configVersion }}
azureDevOpsJSONSPN: $(aro-v4-ci-devops-spn)
vsoProjectID: $(vso-project-id)
vsoConfigPipelineID: $(vso-config-pipeline-id)
vsoConfigBuildID: ${{ parameters.vsoConfigBuildID }}
vsoDeployerPipelineID: $(vso-deployer-pipeline-id)
vsoDeployerBuildID: ${{ parameters.vsoDeployerBuildID }}
azureDevOpsE2EJSONSPN: $(aro-v4-e2e-devops-spn)

Просмотреть файл

@ -3,8 +3,8 @@ pr: none
trigger: none
parameters:
- name: vsoConfigBuildID
- name: vsoDeployerBuildID
- name: configVersion
stages:
- stage: Deploy_CanarySector
@ -20,10 +20,9 @@ stages:
- westcentralus
- eastus2euap
configFileName: prod-config.yaml
configVersion: ${{ parameters.configVersion }}
azureDevOpsJSONSPN: $(aro-v4-ci-devops-spn)
vsoProjectID: $(vso-project-id)
vsoConfigPipelineID: $(vso-config-pipeline-id)
vsoConfigBuildID: ${{ parameters.vsoConfigBuildID }}
vsoDeployerPipelineID: $(vso-deployer-pipeline-id)
vsoDeployerBuildID: ${{ parameters.vsoDeployerBuildID }}
azureDevOpsE2EJSONSPN: $(aro-v4-e2e-devops-spn)

Просмотреть файл

@ -5,14 +5,13 @@ parameters:
azureDevOpsJSONSPN: ''
billingE2EPipelineName: ''
billingE2EBranchName: ''
configVersion: ''
configFileName: ''
e2eSubscription: ''
environment: ''
locations: []
rpMode: ''
vsoProjectID: ''
vsoConfigPipelineID: ''
vsoConfigBuildID: ''
vsoDeployerPipelineID: ''
vsoDeployerBuildID: ''
@ -28,20 +27,12 @@ jobs:
runOnce:
deploy:
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: specific
project: ${{ parameters.vsoProjectID }}
pipeline: ${{ parameters.vsoConfigPipelineID }}
${{ if eq(parameters.vsoConfigBuildID, 'latest') }}:
buildVersionToDownload: latestFromBranch
branchName: refs/heads/master
${{ if ne(parameters.vsoConfigBuildID, 'latest') }}:
buildVersionToDownload: specific
buildId: ${{ parameters.vsoConfigBuildID }}
downloadType: specific
downloadPath: $(System.ArtifactsDirectory)/config
displayName: Download Config
- ${{ if eq(parameters.configVersion, 'latest') }}:
- checkout: git://AzureRedHatOpenShift/RP-Config@refs/heads/master
path: $(Agent.BuildDirectory)/s/config
- ${{ if ne(parameters.configVersion, 'latest') }}:
- checkout: git://AzureRedHatOpenShift/RP-Config@refs/tags/${{parameters.configVersion}}
path: $(Agent.BuildDirectory)/s/config
- task: DownloadBuildArtifacts@0
inputs:
buildType: specific
@ -58,7 +49,7 @@ jobs:
displayName: Download Deployer
- template: ./template-deploy-azure-env.yml
parameters:
configDirectory: $(System.ArtifactsDirectory)/config/drop/deploy
configDirectory: $(Agent.BuildDirectory)/s/config/deploy
deployerDirectory: $(System.ArtifactsDirectory)/deployer/drop
configFileName: ${{ parameters.configFileName }}
location: ${{ location }}