Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Fix the wrong environment variable PLATFORM passing into the slave container issue #7262

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

liushilongbuaa
Copy link
Contributor

@liushilongbuaa liushilongbuaa commented Apr 8, 2021

Why I did it

It is to fix the wrong usage of the build parameter in the azure pipelines' template. The build parameter PLATFORM=XXX can only be set when making configure (by command make configuration). To build platform images, we should avoid to set the value.
make PLATFORM=vs configuration
Bad usage:
make PLATFORM=vs target/sonic-vs.img.gz
Good usage:
make target/sonic-vs.img.gz

How I did it

Change the environment PLATFORM to PLATFORM_AZP to avoid to pass the parameter.

How to verify it

@xumia xumia requested a review from qiluo-msft April 8, 2021 14:33
@xumia
Copy link
Collaborator

xumia commented Apr 8, 2021

@qiluo-msft , is it a known issue? We cannot set the parameter "PLATFORM" when building vs images.
make PLATFORM=vs target/sonic-vs.img.gz

SONIC_BUILD_INSTRUCTION := make
-f slave.mk
PLATFORM=$(PLATFORM) \

@lguohan
Copy link
Collaborator

lguohan commented Apr 8, 2021

please have proper description?

@qiluo-msft
Copy link
Collaborator

please have proper title? not a good name 'hot fix'.

@qiluo-msft qiluo-msft added the ci label Apr 8, 2021
@xumia xumia changed the title [CI] Hot fix for official build pipeline [CI] Fix the wrong environment variable PLATFORM passing into the slave container issue Apr 8, 2021
@xumia xumia merged commit 1c220d9 into sonic-net:master Apr 8, 2021
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Apr 25, 2021
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Apr 25, 2021
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request May 10, 2021
liushilongbuaa added a commit to liushilongbuaa/sonic-buildimage that referenced this pull request May 10, 2021
liushilongbuaa added a commit that referenced this pull request May 12, 2021
liushilongbuaa added a commit that referenced this pull request May 12, 2021
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-buildimage that referenced this pull request May 23, 2021
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
@liushilongbuaa liushilongbuaa deleted the hot-fix-0408 branch October 18, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants