Jenkinsfile
Change-Id: Ie51c666a7d9661351abed20e0840fb736c5d951e
diff --git a/Jenkinsfile b/Jenkinsfile
index 0464054..889c21d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -76,8 +76,8 @@
)
stage 'Wait for compute nodes to get deployed'
- sh 'ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R ${headNodeIP}'
- def cordapikey = sh(returnStdout: true, script: "sshpass -p ${headNodePass} ssh -oStrictHostKeyChecking=no -l ${headNodeUser} ${headNodeIP} sudo maas-region-admin apikey --username cord")
+ sh 'ssh-keygen -f /home/${devNodeUser}/.ssh/known_hosts -R ${headNodeIP}'
+ def cordapikey = sh(returnStdout: true, script: "sshpass -p ${headNodePass} ssh -oStrictHostKeyChecking=no -l ${headNodeUser} ${headNodeIP} sudo maas-region-admin apikey --username ${headNodeUser}")
sh "sshpass -p ${headNodePass} ssh -oStrictHostKeyChecking=no -l ${headNodeUser} ${headNodeIP} maas login pod-maas http://${headNodeIP}/MAAS/api/1.0 $cordapikey"
timeout(time: 45) {
waitUntil {