Skip to content

Commit c4f65f6

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 9008132 commit c4f65f6

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
@@ -80,14 +80,14 @@ stages:
8080
default_platform=broadcom
8181
artifacts=$(find $(Pipeline.Workspace) -maxdepth 1 -type d -name 'sonic-buildimage.*' | grep -v "sonic-buildimage.${default_platform}")
8282
echo "artifacts$artifacts"
83-
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/versions target/
83+
cp -r $(Pipeline.Workspace)/sonic-buildimage.${default_platform}/target/versions target/
8484
make freeze FREEZE_VERSION_OPTIONS=-r
8585
find files/build/versions
8686
ordered_artifacts=$(echo "$artifacts" | grep -v -E "arm64|armhf" && echo "$artifacts" | grep -E "arm64|armhf")
8787
for artifact in $ordered_artifacts
8888
do
8989
rm -rf target/versions
90-
cp -r $artifact/versions target/
90+
cp -r $artifact/target/versions target/
9191
OPTIONS="-a -d"
9292
[[ "$artifact" == *arm64* || "$artifact" == *armhf* ]] && OPTIONS="-d"
9393
make freeze FREEZE_VERSION_OPTIONS="$OPTIONS"

0 commit comments

Comments
 (0)