6 echo "Starting the deployment on baremetal environment using $INSTALLER_TYPE. This could take some time..."
7 echo "--------------------------------------------------------"
10 rm -rf $WORKSPACE/scripts/src/config_kubeedge
12 cp /home/jenkins/nodelist_kubeedge $WORKSPACE/scripts/src/config_kubeedge
14 cd $WORKSPACE/scripts/src
16 sudo ./kubeedge_setup.sh
19 echo "depolyment failed!"
24 echo "Logs uploading to nexus repo"
26 export ARCHIVE_ARTIFACTS="**/*.log"
27 export NEXUS_URL=https://nexus.akraino.org
29 export JENKINS_HOSTNAME=http://159.138.47.166:8080
30 export BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}"
31 export NEXUS_PATH="${SILO}/job/${JOB_NAME}/${BUILD_NUMBER}"
32 lftools deploy archives -p "$ARCHIVE_ARTIFACTS" "$NEXUS_URL" "$NEXUS_PATH" "$WORKSPACE"
33 lftools deploy logs $NEXUS_URL $NEXUS_PATH $BUILD_URL
37 echo "Logs uploaded to $NEXUS_URL/content/sites/logs/$NEXUS_PATH"
42 echo "--------------------------------------------------------"