Adding dev node username variable
Change-Id: I2e41c8a4f7ce19a3d3fc109a3a2d2135de119365
diff --git a/Jenkinsfile b/Jenkinsfile
index 770da99..3aeae45 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 {