Feature 10892/10893/8460: refactor of OSM installer
This change covers:
- Feature 10892. Installation of OSM on top of Ubuntu20.04. Changes
are mostly in full_install_osm.sh and are related to the use of new
versions of kubeadm and docker-ce. In addition, changes in Jenkins
groovy files have been done to indicate the base image to be used,
either 18.04 or 20.04.
- Feature 10893. Better tracking of installation. The code for tracking
in in common/track. There is a function track that it is called in
the different steps of the installation.
- Feature 8460: Cleanup old code in full_install_osm.sh. The script
full_install_osm.sh has been split in different scripts performing
specific tasks, thus simplifying the installer: install_docker_ce.sh,
install_juju.sh and install_kubeadm_cluster.sh.
Change-Id: I1e388ec56285337eaf34f68470aa5a9b23ff45ff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/test_track.sh b/installers/test_track.sh
new file mode 100755
index 0000000..8db0260
--- /dev/null
+++ b/installers/test_track.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+source ../common/track
+
+RELEASE="ReleaseTEN"
+OSM_DOCKER_TAG=latest
+OSM_TRACK_INSTALLATION_ID="$(date +%s)-$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)"
+
+track
+track start
+sleep 1
+track start release $RELEASE
+sleep 1
+track start docker_tag $OSM_DOCKER_TAG none none
+sleep 1
+track start release $RELEASE none none docker_tag $OSM_DOCKER_TAG none none
+sleep 1
+track my-event my-op my-value "My comment" "tag1,tag2"
+sleep 1
+track my-second-event op1 value1 "My comment1 on second event" none op2 value2 "My comment2 on second event" none
+