diff --git a/.azure-pipelines/azure-pipelines-build.yml b/.azure-pipelines/azure-pipelines-build.yml index 74e5153e8b..824a654c24 100644 --- a/.azure-pipelines/azure-pipelines-build.yml +++ b/.azure-pipelines/azure-pipelines-build.yml @@ -103,25 +103,6 @@ jobs: - template: .azure-pipelines/template-skipvstest.yml@buildimage - template: .azure-pipelines/template-daemon.yml@buildimage - bash: | - ( - while true - do - sleep 120 - now=$(date +%s) - pids=$(ps aux | grep -v grep | grep -E "^.{,100}docker build" | awk '{print$2}') - for pid in $pids - do - start=$(date --date="$(ls -dl /proc/$pid --time-style full-iso | awk '{print$6,$7}')" +%s) - time_s=$(($now-$start)) - if [[ $time_s -gt $(DOCKER_BUILD_TIMEOUT) ]]; then - echo =========== $(date +%F%T) $time_s &>> target/daemon.log - ps $pid &>> target/daemon.log - sudo kill $pid - fi - done - done - ) & - daemon_pid=$! set -ex if [ $(GROUP_NAME) == vs ]; then if [ $(dbg_image) == yes ]; then @@ -169,6 +150,5 @@ jobs: fi make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).bin fi - sudo kill $daemon_pid displayName: "Build sonic image" - template: .azure-pipelines/check-dirty-version.yml@buildimage