-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci]: Support azp for cisco 8000 (#8654)
Why I did it Setup Azure pipeline for cisco 8000.
- Loading branch information
1 parent
c71a263
commit 63037a2
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
|
||
schedules: | ||
- cron: "0 8 * * *" | ||
displayName: Daily midnight build | ||
branches: | ||
include: | ||
- master | ||
- 202012 | ||
always: true | ||
|
||
trigger: none | ||
pr: none | ||
|
||
resources: | ||
repositories: | ||
- repository: cisco-8000 | ||
type: github | ||
name: Cisco-8000-sonic/platform-cisco-8000 | ||
endpoint: cisco-connection | ||
|
||
stages: | ||
- stage: Build | ||
pool: sonic | ||
variables: | ||
CACHE_MODE: wcache | ||
SKIP_CHECKOUT: true | ||
TERM: '' | ||
|
||
jobs: | ||
- template: azure-pipelines-build.yml | ||
parameters: | ||
buildOptions: 'USERNAME=admin SONIC_BUILD_JOBS=$(nproc) ${{ variables.VERSION_CONTROL_OPTIONS }}' | ||
preSteps: | ||
- checkout: self | ||
submodules: recursive | ||
path: s | ||
displayName: 'Checkout code' | ||
- checkout: cisco-8000 | ||
submodules: recursive | ||
path: s/platform/cisco-8000 | ||
displayName: 'Checkout cisco-8000' | ||
- script: | | ||
cisco_ref=(cat platform/checkout/cisco-8000.ini | grep '^ref=' | cut -d= -f2) | ||
echo "The cisco 8000 release version is $cisco_ref" | ||
echo "##vso[task.setvariable variable=cisco.ref]$cisco_ref" | ||
displayName: 'Export cisco release version' | ||
- task: DownloadGitHubRelease@0 | ||
inputs: | ||
connection: cisco-connection | ||
userRepository: Cisco-8000-sonic/platform-cisco-8000 | ||
defaultVersionType: specificTag | ||
version: $(cisco.ref) | ||
itemPattern: 'artifactory-*.tar.gz' | ||
downloadPath: '$(System.ArtifactsDirectory)' | ||
- script: | | ||
make PLATFORM=cisco-8000 platform/cisco-8000 | ||
tar xfz $(System.ArtifactsDirectory)/artifactory-*.tar.gz -C platform/cisco-8000 | ||
displayName: 'Setup cisco artifacts' | ||
jobGroups: | ||
- name: cisco-8000 |