VOLTHA Automated Testing: Build locally without vagrant
Change-Id: Ib01522117838a59eae32354dc51dc7f10c68e1b0
diff --git a/jjb/pipeline/voltha-atest-provisioning.groovy b/jjb/pipeline/voltha-atest-provisioning.groovy
index ea8d198..bc15b09 100755
--- a/jjb/pipeline/voltha-atest-provisioning.groovy
+++ b/jjb/pipeline/voltha-atest-provisioning.groovy
@@ -9,12 +9,6 @@
stages {
- stage ('Cleanup workspace') {
- steps {
- sh 'rm -rf ./build ./component ./incubator ./onos-apps ./orchestration ./test ./.repo'
- }
- }
-
stage('voltha Repo') {
steps {
checkout(changelog: false, \
@@ -33,30 +27,26 @@
}
}
- stage ('Bring up voltha dev vm') {
- steps {
- sh '''
- pushd $WORKSPACE/cord/incubator/voltha
- vagrant up voltha
- popd
- '''
- }
- }
- stage ('Remove the pre-created venv-linux') {
- steps {
- sh 'vagrant ssh -c "rm -rf $WORKSPACE/cord/incubator/voltha/venv-linux"'
- }
- }
-
stage ('Build voltha and onos') {
steps {
- sh 'vagrant ssh -c "cd $WORKSPACE/cord/incubator/voltha && source env.sh && make fetch-jenkins && make jenkins && make onos" voltha' }
- }
+ sh '''
+ cd $WORKSPACE/cord/incubator/voltha
+ source env.sh
+ make fetch
+ make clean
+ make build
+ make onos
+ '''
+ }
+ }
stage ('Start Provisioning Test') {
steps {
println 'Start Provisioning Test'
- sh 'vagrant ssh -c "cd $WORKSPACE/cord/incubator/voltha/tests && pwd" voltha' }
+ 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'
}
}
+ }
}