Restarting progran app in onos-progran as part of the pipeline
Change-Id: If1dd8eac847f61dda2d464ac832ad6ee01492822
diff --git a/Jenkinsfile-mcord-local-build b/Jenkinsfile-mcord-local-build
index 48e8320..85f2de4 100644
--- a/Jenkinsfile-mcord-local-build
+++ b/Jenkinsfile-mcord-local-build
@@ -373,6 +373,12 @@
return onos_progran_completed.toInteger() == 1
}
}
+ timeout(2) {
+ sh returnStdout: true, script: """
+ sshpass -p karaf ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30116 -l karaf ${deployment_config.nodes[0].ip} 'app deactivate org.onosproject.progran'
+ sshpass -p karaf ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30116 -l karaf ${deployment_config.nodes[0].ip} 'app activate org.onosproject.progran'
+ """
+ }
}
stage('Install xos-core') {