mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-10-29 17:22:33 +00:00
[Ci] Support the SONiC reproducible build in Azure Pipelines (#13986)
Why I did it [Ci] Support the SONiC reproducible build in Azure Pipelines Enable the reproducible build on master branch Enable the mirror snapshot based build on 202205+ which support snapshot build. How I did it Enable the build flag on Azure Pipelines. How to verify it
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
variables:
|
||||
${{ if eq(variables['Build.Reason'],'PullRequest') }}:
|
||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=$([[ "$(System.PullRequest.TargetBranch)" =~ ^20[2-9][0-9]{3}$ ]] && echo deb,py2,py3,web,git,docker)'
|
||||
${{ elseif ne(variables['Build.SourceBranchName'],'master') }}:
|
||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
||||
${{ else }}:
|
||||
VERSION_CONTROL_OPTIONS: ''
|
||||
VERSION_CONTROL_OPTIONS: 'SONIC_VERSION_CONTROL_COMPONENTS=deb,py2,py3,web,git,docker'
|
||||
|
||||
@@ -6,3 +6,4 @@ variables:
|
||||
SONIC_BUILD_RETRY_INTERVAL: 600
|
||||
DOCKER_BUILDKIT: 0
|
||||
DOCKER_BUILD_TIMEOUT: 3600
|
||||
MIRROR_SNAPSHOT: y
|
||||
|
||||
Reference in New Issue
Block a user