Allow to use EU-based jenkins builder for offline building
PROD-37124
Change-Id: Ia4dc1ff7630419846c38df4494ecc67974bf493a
diff --git a/packer-image-buid.groovy b/packer-image-buid.groovy
index 4117d06..e95efff 100644
--- a/packer-image-buid.groovy
+++ b/packer-image-buid.groovy
@@ -89,6 +89,9 @@
}
// Necessary to have ~100G of volume on node for build offline image. Code below chooses huge available slave.
def getHugeSlave() {
+ if (os_openrc['OPENSTACK_ENVIRONMENT'] == "internal_cloud_v2_eu") {
+ return nodesByLabel("mcp-offline-builder-eu")[0]
+ }
slaves = nodesByLabel("virtual")
def targetSlave = ''
for (slave in slaves) {
@@ -107,7 +110,7 @@
nodeForBuild = getHugeSlave()
-timeout(time: 6, unit: 'HOURS') {
+timeout(time: 9, unit: 'HOURS') {
node(nodeForBuild) {
def workspace = common.getWorkspace()
def openstackEnv = "${workspace}/venv"