updating voltha-provisioning test job
Change-Id: Ic793693923b580a52f269543ab0c83532326de28
diff --git a/jjb/pipeline/voltha-atest-provisioning.groovy b/jjb/pipeline/voltha-atest-provisioning.groovy
index bc15b09..433c6c5 100755
--- a/jjb/pipeline/voltha-atest-provisioning.groovy
+++ b/jjb/pipeline/voltha-atest-provisioning.groovy
@@ -9,7 +9,15 @@
stages {
- stage('voltha Repo') {
+ stage ('Clean up') {
+ steps {
+ sh '''
+ rm -rf $WORKSPACE/
+ '''
+ }
+ }
+
+ stage('Voltha Repo') {
steps {
checkout(changelog: false, \
poll: false,
@@ -27,26 +35,45 @@
}
}
- stage ('Build voltha and onos') {
+ stage ('Build Voltha and ONOS') {
steps {
sh '''
cd $WORKSPACE/cord/incubator/voltha
+ chmod +x env.sh
source env.sh
- make fetch
- make clean
- make build
- make onos
'''
}
}
stage ('Start Provisioning Test') {
steps {
- println 'Start Provisioning Test'
- println 'Run the following commands when the testing code is in Gerrit'
- println 'cd tests/atests/'
- println 'robot -d results -v LOG_DIR:/tmp robot/auto_testing.robot'
+ sh '''
+ cd $WORKSPACE/cord/incubator/voltha/tests/atests/common/
+ ./run_robot.sh jenkinstest
+ '''
}
}
+
+ stage('Publish') {
+ steps {
+ sh """
+ if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs
+ cp -r $WORKSPACE/cord/incubator/voltha/jenkinstest/ ./RobotLogs
+ """
+
+ step([$class: 'RobotPublisher',
+ disableArchiveOutput: false,
+ logFileName: 'RobotLogs/log*.html',
+ otherFiles: '',
+ outputFileName: 'RobotLogs/output*.xml',
+ outputPath: '.',
+ passThreshold: 100,
+ reportFileName: 'RobotLogs/report*.html',
+ unstableThreshold: 0]);
+ }
+ }
+
}
}
+
+
diff --git a/jjb/voltha-atest-provisioning.yaml b/jjb/voltha-atest-provisioning.yaml
index 96f307d..494d6f2 100644
--- a/jjb/voltha-atest-provisioning.yaml
+++ b/jjb/voltha-atest-provisioning.yaml
@@ -36,7 +36,7 @@
parameters:
- string:
name: executorNode
- default: 'ubuntu16.04-basebuild-4c-8g'
+ default: 'qct-pod3-voltha-testing'
description: 'Name of the Jenkins node to run the job on'
- string:
@@ -46,7 +46,7 @@
- string:
name: manifestBranch
- default: '$GERRIT_BRANCH'
+ default: 'master'
description: 'Name of the repo branch to use'
project-type: pipeline