removed ssh key adding and have it in template
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -155,16 +155,6 @@ for row in data.get('rows', []):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Copy Jenkins SSH Key') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh """
|
|
||||||
ssh-copy-id -i /var/lib/jenkins/.ssh/id_ed25519.pub -o StrictHostKeyChecking=no jenkins@${env.VM_IP}
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Set Hostname') {
|
stage('Set Hostname') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
vm_template_id: "128"
|
vm_template_id: "118"
|
||||||
vm_template_node: "homestrg1"
|
vm_template_node: "homestrg1"
|
||||||
vm_template_hostname: "ubuntu24vm"
|
vm_template_hostname: "ubuntu24vm"
|
||||||
|
|||||||
Reference in New Issue
Block a user