engine: Adapt verify jobs for infra/installer/kolla repository
[infra/cicd.git] / jjb / engine / scripts / download-artifact.sh
index b6602d39442fd3f1ab5b25413baecfb030cb9951..c1bf97ed01640e62cff5ac6763053d7bd7029a49 100755 (executable)
 set -o nounset
 set -o errexit
 
+if [[ "$GERRIT_PROJECT" == "infra/installer/kolla" ]]; then
+  echo "Info  : Artifact download is not enabled for $GERRIT_PROJECT repository"
+  exit 0
+fi
+
 if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
   # ensure we delete leftovers due to lack of disk space
   sudo /bin/rm -rf /tmp/$ARTIFACT_TO_DOWNLOAD ~/.ara \
@@ -37,6 +42,10 @@ if [[ "$EXECUTION_MODE" == "offline-deployment" ]]; then
 $NORDIX_ARM_PUBLIC_IP artifactory.nordix.org
 # managed by engine
 EOF"
+
+  # we need to get rid of search domain as well
+  sudo sed -i 's/^search/# search/' /etc/resolv.conf
+
   echo "Info  : Downloading artifact from Nordix ARM..."
   echo "        $NORDIX_ARTIFACT_URL/$ARTIFACT_TO_DOWNLOAD"
   cd /tmp