Skip to content

Commit d354cd8

Browse files
committed
[ci] Fix the generating version file failure issue caused by artifacts folder change (#7464) (#10451)
Fix the generating version file failure issue caused by artifacts folder change. When changing to use the same template for PR build, official build and packages version upgrade, the artifacts folder adding a "target" folder, the version upgrade task should be changed accordingly.
1 parent a4b26ce commit d354cd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.azure-pipelines/azure-pipelines-UpgrateVersion.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ stages:
7373
default_platform=broadcom
7474
artifacts=$(find $(Pipeline.Workspace) -maxdepth 1 -type d -name 'sonic-buildimage.*' | grep -v "sonic-buildimage.${default_platform}")
7575
echo "artifacts$artifacts"
76-
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/versions target/
76+
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/target/versions target/
7777
make freeze FREEZE_VERSION_OPTIONS=-r
7878
find files/build/versions
7979
ordered_artifacts=$(echo "$artifacts" | grep -v -E "arm64|armhf" && echo "$artifacts" | grep -E "arm64|armhf")
8080
for artifact in $ordered_artifacts
8181
do
8282
rm -rf target/versions
83-
cp -r $artifact/versions target/
83+
cp -r $artifact/target/versions target/
8484
OPTIONS="-a -d"
8585
[[ "$artifact" == *arm64* || "$artifact" == *armhf* ]] && OPTIONS="-d"
8686
make freeze FREEZE_VERSION_OPTIONS="$OPTIONS"

0 commit comments

Comments
 (0)