mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 06:40:23 +00:00
ci: pass strings with quotes over ssh in mini-e2e-helm
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a44bb6fd98
commit
c0943efc64
@ -6,8 +6,10 @@ def git_repo = 'https://github.com/ceph/ceph-csi'
|
|||||||
def ref = "master"
|
def ref = "master"
|
||||||
def namespace = 'cephcsi-e2e-' + UUID.randomUUID().toString().split('-')[-1]
|
def namespace = 'cephcsi-e2e-' + UUID.randomUUID().toString().split('-')[-1]
|
||||||
|
|
||||||
|
// ssh executes a given command on the reserved bare-metal machine
|
||||||
|
// NOTE: do not pass " symbols on the command line, use ' only.
|
||||||
def ssh(cmd) {
|
def ssh(cmd) {
|
||||||
sh "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CICO_NODE} '${cmd}'"
|
sh "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CICO_NODE} \"${cmd}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
node('cico-workspace') {
|
node('cico-workspace') {
|
||||||
|
Loading…
Reference in New Issue
Block a user