[ci]: Add yaml for azure pipeline official build#6588
[ci]: Add yaml for azure pipeline official build#6588qiluo-msft merged 36 commits intosonic-net:masterfrom liushilongbuaa:master
Conversation
lguohan
left a comment
There was a problem hiding this comment.
please change to .azure-pipelines/official.yml
|
/AzurePipelines run |
|
Commenter does not have sufficient privileges for PR 6588 in repo Azure/sonic-buildimage |
.azure-pipelines/cleanup.yml
Outdated
There was a problem hiding this comment.
the code checked out as /agent/_work/1/s
there is no sonic-buildimage directory here.
should do sudo rm -rf target
There was a problem hiding this comment.
can we publish
There was a problem hiding this comment.
if $(system.DefaultWorkingDirectory)/fsroot exist, publish maybe failed.
Signed-off-by: shilongliu <[email protected]>
Signed-off-by: shilongliu <[email protected]>
Signed-off-by: shilongliu <[email protected]>
Signed-off-by: shilongliu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
.azure-pipelines/build-template.yml
Outdated
| - checkout: self | ||
| submodules: recursive | ||
| displayName: 'Checkout code' | ||
| - script: | |
There was a problem hiding this comment.
Add clean=true in checkout, so this block can be removed.
There was a problem hiding this comment.
If fsroot exist, checkout with "clean=true" will fail because of permission.
Put clean steps together. Do cleaning job pre-build and post-build. This is more robust than build-in clean.
| git submodule foreach --recursive git reset --hard | ||
| git submodule update --init --recursive | ||
| displayName: 'reset submodules' | ||
| - script: | |
There was a problem hiding this comment.
How about to move the script from the template to the official.yml, only keep the most common part in the template, like init, checkout, publish, cleanup.
There was a problem hiding this comment.
each plat form write their own script. this will make yml file more different with each other, like current Jenkinsfiles.
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
Signed-off-by: Shilong Liu <[email protected]>
**- Why I did it** To support nightly build for master branch **- How to verify it** confirm from azure pipeline page.
- Why I did it
To support nightly build for master branch
- How I did it
- How to verify it
confirm from azure pipeline page.
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)