X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fsystem%2Fstart_build;h=823e160a0397f9993fbc5b9ac3031f108e3bda29;hb=f40f0c89b2e01e65303b4ffa48c48ae7bd97cbab;hp=a50a5a8263f6c34fe1ed80124aa7ed26d859253d;hpb=c80394e7806dc89e012d958b71b87e48a7db20b9;p=osm%2Fdevops.git diff --git a/jenkins/system/start_build b/jenkins/system/start_build index a50a5a82..823e160a 100755 --- a/jenkins/system/start_build +++ b/jenkins/system/start_build @@ -19,9 +19,11 @@ HERE=$(realpath $(dirname $0)) OSM_JENKINS=$(dirname $HERE) . $OSM_JENKINS/common/all_funcs +. $OSM_JENKINS/common/install_common INFO "Installing packages" apt-get update +apt install -y lxd INFO "Configuring LXD" # ZFS doesn't work inside a nested container. ZFS should be configured in the host LXD. @@ -53,11 +55,10 @@ systemctl start lxd-bridge apt-get install -y python-pip python python-pycurl charm-tools python-pytest -# TODO: use package when available on osm repo -git clone https://osm.etsi.org/gerrit/osm/osmclient -pip install osmclient/. +apt install -y python-osmclient -devops/installers/install_osm.sh $* +export OSM_USE_LOCAL_DEVOPS=true +devops/installers/install_osm.sh --test $* RC=$? # workaround. for upload packages, lxdbr0 needs to be promiscuous @@ -71,6 +72,8 @@ if [ $RC == 0 ]; then TO_ADD="export OSM_HOSTNAME=$SO_CONTAINER_IP" grep -q OSM_HOSTNAME ~/.bashrc && sed -i "s/.*OSM_HOSTNAME.*/$TO_ADD/" ~/.bashrc || echo -e "$TO_ADD\n$(cat ~/.bashrc)" > ~/.bashrc + TO_ADD="export OSM_RO_HOSTNAME=$RO_CONTAINER_IP" + grep -q OSM_RO_HOSTNAME ~/.bashrc && sed -i "s/.*OSM_RO_HOSTNAME.*/$TO_ADD/" ~/.bashrc || echo -e "$TO_ADD\n$(cat ~/.bashrc)" > ~/.bashrc fi INFO "done, RC=$RC"