mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
ci: use pre-pulled image for building e2e.test
The 'mini-e2e' job uses the pre-pulled container image for building the e2e.test executable. The building of the executable takes less than 2 minutes, while building with preparing the container image takes close to 5 minutes. This reduces consumption of network bandwith, and might speed up other parallel builds. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
a373882099
commit
ca4ec105c2
@ -134,7 +134,7 @@ node('cico-workspace') {
|
|||||||
// build container image
|
// build container image
|
||||||
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make image-cephcsi GOARCH=amd64 CONTAINER_CMD=podman'
|
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make image-cephcsi GOARCH=amd64 CONTAINER_CMD=podman'
|
||||||
// build e2e.test executable
|
// build e2e.test executable
|
||||||
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 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(
|
def rook_version = sh(
|
||||||
|
@ -131,7 +131,7 @@ node('cico-workspace') {
|
|||||||
// build container image
|
// build container image
|
||||||
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make image-cephcsi GOARCH=amd64 CONTAINER_CMD=podman'
|
ssh 'cd /opt/build/go/src/github.com/ceph/ceph-csi && make image-cephcsi GOARCH=amd64 CONTAINER_CMD=podman'
|
||||||
// build e2e.test executable
|
// build e2e.test executable
|
||||||
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 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(
|
def rook_version = sh(
|
||||||
|
Loading…
Reference in New Issue
Block a user