Skip to content

Commit

Permalink
update download tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeepsplaha committed Feb 4, 2024
1 parent 4c91735 commit c11bb2d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 57 deletions.
32 changes: 16 additions & 16 deletions .pipelines/containerSourceData/yaml_files/BuildGoldenContainers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,27 +366,27 @@ stages:
- task: DownloadPipelineArtifact@2
displayName: 'Download $(baseContainerFile) - ${{ parameters.architecture }}'
inputs:
buildType: specific
project: mariner
definition: $(baseContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(baseContainersBuildId)
artifactName: $(artifactName)
itemPattern: $(containerArtifactDir)/$(baseContainerFile)
targetPath: $(artifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(baseContainersPipelineId)'
runVersion: specific
runId: $(baseContainersBuildId)
artifact: $(artifactName)
patterns: $(containerArtifactDir)/$(baseContainerFile)
path: '$(artifactsDownloadDir)'
condition: eq(variables['proceed'], 'true')

- task: DownloadPipelineArtifact@2
displayName: 'Download $(rpmsTarball) - ${{ parameters.architecture }}'
inputs:
buildType: specific
project: mariner
definition: $(baseContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(baseContainersBuildId)
artifactName: $(artifactName)
itemPattern: $(buildArtifactsDir)/$(rpmsTarball)
targetPath: $(artifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(baseContainersPipelineId)'
runVersion: specific
runId: $(baseContainersBuildId)
artifact: $(artifactName)
patterns: $(buildArtifactsDir)/$(rpmsTarball)
path: '$(artifactsDownloadDir)'
condition: eq(variables['proceed'], 'true')

- task: Bash@3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ stages:
- task: DownloadPipelineArtifact@2
displayName: 'Download $(buildConfigDir)'
inputs:
buildType: specific
project: mariner
definition: $(baseContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(baseContainersBuildId)
artifactName: $(artifactName)
itemPattern: $(buildConfigDir)/*
targetPath: $(artifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(baseContainersPipelineId)'
runVersion: specific
runId: $(baseContainersBuildId)
artifact: $(artifactName)
patterns: $(buildConfigDir)/*
path: '$(artifactsDownloadDir)'

- task: Bash@3
displayName: 'Set Build Number'
Expand Down
65 changes: 32 additions & 33 deletions .pipelines/containerSourceData/yaml_files/PublishContainers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ stages:
- task: DownloadPipelineArtifact@2
displayName: 'Download $(buildConfigDir) - AMD64'
inputs:
buildType: specific
project: mariner
definition: $(amd64ContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(amd64ContainersBuildId)
artifactName: $(configArtifactName)
itemPattern: $(buildConfigDir)/*
targetPath: $(amd64ArtifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(amd64ContainersPipelineId)'
runVersion: specific
runId: $(amd64ContainersBuildId)
artifact: $(configArtifactName)
patterns: $(buildConfigDir)/*
path: '$(amd64ArtifactsDownloadDir)'

- task: DownloadPipelineArtifact@2
displayName: 'Download $(buildConfigDir) - ARM64'
inputs:
buildType: specific
project: mariner
definition: $(arm64ContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(arm64ContainersBuildId)
artifactName: $(configArtifactName)
itemPattern: $(buildConfigDir)/*
targetPath: $(arm64ArtifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(arm64ContainersPipelineId)'
runVersion: specific
runId: $(arm64ContainersBuildId)
artifact: $(configArtifactName)
patterns: $(buildConfigDir)/*
path: '$(arm64ArtifactsDownloadDir)'

- task: Bash@3
displayName: 'Validate Build Numbers'
Expand Down Expand Up @@ -140,31 +140,30 @@ stages:
- task: DownloadPipelineArtifact@2
displayName: 'Download $(containerArtifactDir) - AMD64'
inputs:
buildType: specific
project: mariner
definition: $(amd64ContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(amd64ContainersBuildId)
artifactName: $(containersArtifactName)
itemPattern: $(containerArtifactDir)/$(containerFilesPrefix)*$(containerFilesSuffix)
targetPath: $(amd64ArtifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(amd64ContainersPipelineId)'
runVersion: specific
runId: $(amd64ContainersBuildId)
artifact: $(containersArtifactName)
patterns: $(containerArtifactDir)/$(containerFilesPrefix)*$(containerFilesSuffix)
path: '$(amd64ArtifactsDownloadDir)'

# This task's downloaded artifacts are not used.
# It is just to implicitly validate that the corresponding ARM64 containers exist.
# Some containers are only produced for AMD64 architecture.
# Therefore, we can continue on error but would still like to direct attention to this task's failure.
- task: DownloadPipelineArtifact@2
displayName: 'Download $(containerArtifactDir) - ARM64'
continueOnError: True
inputs:
buildType: specific
project: mariner
definition: $(arm64ContainersPipelineId)
buildVersionToDownload: specific
pipelineId: $(arm64ContainersBuildId)
artifactName: $(containersArtifactName)
itemPattern: $(containerArtifactDir)/$(containerFilesPrefix)*$(containerFilesSuffix)
targetPath: $(arm64ArtifactsDownloadDir)
source: specific
project: 'mariner'
pipeline: '$(arm64ContainersPipelineId)'
runVersion: specific
runId: $(arm64ContainersBuildId)
artifact: $(containersArtifactName)
patterns: $(containerArtifactDir)/$(containerFilesPrefix)*$(containerFilesSuffix)
path: '$(arm64ArtifactsDownloadDir)'

- task: Bash@3
displayName: 'Publish Containers'
Expand Down

0 comments on commit c11bb2d

Please sign in to comment.