mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-03-21 06:39:28 +00:00
ci: pre-pull rook/ceph image from local registry
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
b9cffc1b42
commit
6a7e6c841f
@ -128,6 +128,16 @@ node('cico-workspace') {
|
|||||||
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test'
|
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test'
|
||||||
}
|
}
|
||||||
stage("deploy k8s-${k8s_version} and rook") {
|
stage("deploy k8s-${k8s_version} and rook") {
|
||||||
|
def rook_version = 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 ${ROOK_VERSION}\'',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
|
||||||
|
if (rook_version != '') {
|
||||||
|
// single-node-k8s.sh pushes the image into minikube
|
||||||
|
podman_pull(ci_registry, "rook/ceph:${rook_version}")
|
||||||
|
}
|
||||||
|
|
||||||
timeout(time: 30, unit: 'MINUTES') {
|
timeout(time: 30, unit: 'MINUTES') {
|
||||||
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
||||||
}
|
}
|
||||||
|
@ -125,6 +125,16 @@ node('cico-workspace') {
|
|||||||
ssh "cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test ENV_CSI_IMAGE_NAME=${ci_registry}/ceph-csi USE_PULLED_IMAGE=yes"
|
ssh "cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test ENV_CSI_IMAGE_NAME=${ci_registry}/ceph-csi USE_PULLED_IMAGE=yes"
|
||||||
}
|
}
|
||||||
stage("deploy k8s-${k8s_version} and rook") {
|
stage("deploy k8s-${k8s_version} and rook") {
|
||||||
|
def rook_version = 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 ${ROOK_VERSION}\'',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
|
||||||
|
if (rook_version != '') {
|
||||||
|
// single-node-k8s.sh pushes the image into minikube
|
||||||
|
podman_pull(ci_registry, "rook/ceph:${rook_version}")
|
||||||
|
}
|
||||||
|
|
||||||
timeout(time: 30, unit: 'MINUTES') {
|
timeout(time: 30, unit: 'MINUTES') {
|
||||||
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
||||||
}
|
}
|
||||||
|
@ -129,6 +129,12 @@ install_minikube
|
|||||||
|
|
||||||
./podman2minikube.sh "quay.io/cephcsi/cephcsi:${CSI_IMAGE_VERSION}"
|
./podman2minikube.sh "quay.io/cephcsi/cephcsi:${CSI_IMAGE_VERSION}"
|
||||||
|
|
||||||
|
# incase rook/ceph is available on the local system, push it into the VM
|
||||||
|
if podman inspect "rook/ceph:${ROOK_VERSION}"
|
||||||
|
then
|
||||||
|
./podman2minikube.sh "rook/ceph:${ROOK_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
deploy_rook
|
deploy_rook
|
||||||
|
|
||||||
# running e2e.test requires librados and librbd
|
# running e2e.test requires librados and librbd
|
||||||
|
@ -125,6 +125,16 @@ node('cico-workspace') {
|
|||||||
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test'
|
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make containerized-build CONTAINER_CMD=podman TARGET=e2e.test'
|
||||||
}
|
}
|
||||||
stage("deploy k8s-${k8s_version} and rook") {
|
stage("deploy k8s-${k8s_version} and rook") {
|
||||||
|
def rook_version = 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 ${ROOK_VERSION}\'',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
|
||||||
|
if (rook_version != '') {
|
||||||
|
// single-node-k8s.sh pushes the image into minikube
|
||||||
|
podman_pull(ci_registry, "rook/ceph:${rook_version}")
|
||||||
|
}
|
||||||
|
|
||||||
timeout(time: 30, unit: 'MINUTES') {
|
timeout(time: 30, unit: 'MINUTES') {
|
||||||
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
ssh "./single-node-k8s.sh --k8s-version=${k8s_release}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user