Skip to content

Commit b2c8ad8

Browse files
authored
Fix K8S_OPTIONS maybe empty issue (sonic-net#16891)
Why I did it K8S_OPTIONS maybe empty, so there will be syntax error. Need to fix this issue. Work item tracking Microsoft ADO (number only): 25495020 How I did it Add "" for K8S_OPTIONS to avoid exception. How to verify it No more exception is throwed in PR build validation pipeline.
1 parent 73dd38a commit b2c8ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.azure-pipelines/azure-pipelines-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
make $BUILD_OPTIONS ENABLE_ASAN=y target/docker-sonic-vs.gz
129129
mv target/docker-sonic-vs.gz target/docker-sonic-vs-asan.gz
130130
fi
131-
if [ $(K8S_OPTIONS) == 'INCLUDE_KUBERNETES_MASTER=y' ]; then
131+
if [ "$(K8S_OPTIONS)" == 'INCLUDE_KUBERNETES_MASTER=y' ]; then
132132
make $BUILD_OPTIONS $(K8S_OPTIONS) target/sonic-vs.img.gz
133133
mv target/sonic-vs.img.gz target/sonic-vs-k8s.img.gz
134134
fi

0 commit comments

Comments
 (0)