mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
ci: escape command to be executed over ssh to fetch BASE_IMAGE
The ${BASE_IMAGE} variable gets expanded by running the ssh command. This becomes an empty variable, so the "echo" part of the command does not output anything. By escaping the command, there is no variable substitution, and the BASE_IMAGE variable should get stored in the variable. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
ea281737fe
commit
baac40c136
@ -97,7 +97,7 @@ node('cico-workspace') {
|
||||
}
|
||||
stage('pull base container images') {
|
||||
def base_image = sh(
|
||||
script: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CICO_NODE} "source /opt/build/go/src/github.com/ceph/ceph-csi/build.env && echo ${BASE_IMAGE}"',
|
||||
script: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CICO_NODE} \'source /opt/build/go/src/github.com/ceph/ceph-csi/build.env && echo ${BASE_IMAGE}\'',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user