diff --git a/icinga-build-deb-source b/icinga-build-deb-source index 481f18d423e50b1e96c1748bfe795bd94a4ac280..29239ed594f82807b7f643af84e8ec2e82c830fd 100755 --- a/icinga-build-deb-source +++ b/icinga-build-deb-source @@ -45,12 +45,12 @@ if [ "${ICINGA_BUILD_TYPE}" == "release" ] ; then ( set -ex - if [ "${USCAN_DOWNLOAD}" == "no" ]; then + if [ "${CI_SKIP_USCAN}" == "yes" ]; then cp ./*.tar* "${BUILDDIR}/" + else + cd "${BUILDDIR}/${ICINGA_BUILD_PROJECT}" + run-retry-timeout uscan --download-current-version --verbose fi - - cd "${BUILDDIR}/${ICINGA_BUILD_PROJECT}" - run-retry-timeout uscan --download-current-version --verbose ) else (