diff --git a/.azure-pipelines/docker-sonic-slave.yml b/.azure-pipelines/docker-sonic-slave.yml index 6b4fcafda9..c8209c5163 100644 --- a/.azure-pipelines/docker-sonic-slave.yml +++ b/.azure-pipelines/docker-sonic-slave.yml @@ -21,6 +21,7 @@ pr: - sonic-slave-jessie - sonic-slave-stretch - sonic-slave-buster + - src/sonic-build-hooks parameters: - name: 'arches' diff --git a/src/sonic-build-hooks/scripts/buildinfo_base.sh b/src/sonic-build-hooks/scripts/buildinfo_base.sh index d20d685815..f156930bf0 100755 --- a/src/sonic-build-hooks/scripts/buildinfo_base.sh +++ b/src/sonic-build-hooks/scripts/buildinfo_base.sh @@ -70,7 +70,7 @@ set_reproducible_mirrors() expression="s/^deb.*$REPR_MIRROR_URL_PATTERN/#\0/" fi - local mirrors="/etc/apt/sources.list $(ls /etc/apt/sources.list.d/)" + local mirrors="/etc/apt/sources.list $(find /etc/apt/sources.list.d/ -type f)" for mirror in $mirrors; do sed -i "$expression" "$mirror" done