...
Release Notes for the Predictive Maintenance blueprint.
Summary
This blueprint is a EVE/EDEN project combined with FLedge project for the sake of monitoring some object and act upon the data change
Test configuration:
Server | Components |
---|
Google Cloud machine | Jenkins, Eden |
Google Cloud machine | Eve, Fledge |
Upstream projects :
...
- Eden
- Fledge
Jenkins script:
Wiki Markup |
---|
def COLOR_MAP = [
'SUCCESS': 'good',
'FAILURE': 'danger',
]
pipeline {
agent any
stages {
stage('') {
steps {
sh '''#!/bin/bash
rm -rf ./eden
rm -rf ~/.eden/
#git clone -b pattern-fix https://github.com/itmo-eve/eden/
git clone https://github.com/lf-edge/eden/
cd ./eden
make clean
result=""
q=1
while [ "$result" == "" ]
do
result=$(curl https://registry.hub.docker.com/v2/repositories/lfedge/eve/tags?page=$q | jq -r '."results"[]["name"]' | grep master.*kvm-amd64 | head -1)
q=$((q + 1))
done
result2=${result%-kvm-amd64}
echo $result2
export RESULT2=$result2
export CAMERA_IP=$CAM_IP
export CAMERA_PORT=$CAM_PORT
gcloud auth activate-service-account --key-file /var/lib/jenkins/google-key.json
if gcloud compute images list --project lf-edge-eve --filter="name~'eve-eden-one'" 2>&1 | grep -q 'Listed 0 items'; then
echo "Nothing found"
else
gcloud compute instances delete eve-eden-one -q --zone=us-west1-a
gcloud compute images delete eve-eden-one -q
fi
make build
./eden config add default --devmodel GCP
./eden config set default --key adam.eve-ip --value 35.227.137.74
./eden config set default --key eve.tag --value=$result2
./eden setup
./eden utils gcp image --image-name eve-eden-one -k ../google.json upload /home/jenkins/workspace/eve-docker-image/eden/dist/images/eve/live.img
./eden utils gcp vm --image-name eve-eden-one --vm-name eve-eden-one -k ../google.json run
./eden start
BWD=$(./eden utils gcp vm get-ip --vm-name eve-eden-one -k ./../google.json)
echo "the IP is $BWD"
./eden utils gcp firewall -k ./../google.json --source-range $BWD --name edenflir$BUILD_NUMBER
./eden eve onboard
make build-tests
./eden test ./tests/flir -v debug > flir.log
export PATH=$PATH:/var/lib/jenkins/.local/bin
lynis audit system > lynis.log
lynis audit system remote $BWD > lynis_eve.log
NEXUS_URL=https://nexus.akraino.org
SILO=ai_solutions
JENKINS_HOSTNAME=http://eden-jenkins.fleandr.com:8080/
BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}/"
NEXUS_PATH="${SILO}/job/${JOB_NAME}/${BUILD_NUMBER}"
lftools deploy logs $NEXUS_URL $NEXUS_PATH $BUILD_URL
'''
}
}
}
} |
Test Runs:
...
Test Runs:
View file |
---|
name | flir.log.zip |
---|
height | 250 |
---|
|
View file |
---|
name | build.log.zip |
---|
height | 250 |
---|
|
Security Vulnerabilities:
View file |
---|
name | lynis.log.zip |
---|
height | 250 |
---|
|
Release Data
Software Deliverable
https://github.com/lf-edge/eden/tree/master/tests/flir