5 echo "CLEANUP Prometheus and Cadvisor started...."
6 echo "-------------------------------------------------------"
7 cd $WORKSPACE/scripts/ci_management
8 ./cleanup_prom_cadvisor.sh
10 sshpass -f /home/jenkins/pwfile.txt ssh root@10.10.0.99 "bash -s" < ./uninstall_cadvisor.sh || true
13 echo "CLEANUP prometheus and Cadvisor ended......"
14 echo "-------------------------------------------------------"
17 echo "Starting the deployment on baremetal environment using $INSTALLER_TYPE. This could take some time..."
18 echo "--------------------------------------------------------"
21 rm -rf $WORKSPACE/scripts/nodelist
23 cp /home/jenkins/nodelist $WORKSPACE/scripts/nodelist
25 cd $WORKSPACE/scripts/
29 echo "depolyment failed!"
36 echo "Logs uploading to nexus repo"
38 export ARCHIVE_ARTIFACTS="**/*.log"
39 export NEXUS_URL=https://nexus.akraino.org
41 export JENKINS_HOSTNAME=http://159.138.47.166:8080
42 export BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}"
43 export NEXUS_PATH="${SILO}/job/${JOB_NAME}/${BUILD_NUMBER}"
44 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
45 lftools deploy logs $NEXUS_URL $NEXUS_PATH $BUILD_URL
49 echo "Logs uploaded to $NEXUS_URL/content/sites/logs/$NEXUS_PATH"
52 echo "--------------------------------------------------------"