From a97ad7a6365125c8d57bf176b97d7953ce08f9e6 Mon Sep 17 00:00:00 2001 From: Dominik Hanak Date: Mon, 5 Feb 2024 17:34:29 +0100 Subject: [PATCH] kso-issue-376: Add installKind() to setupCluster() --- .ci/jenkins/Jenkinsfile.e2e.cluster | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci/jenkins/Jenkinsfile.e2e.cluster b/.ci/jenkins/Jenkinsfile.e2e.cluster index 49476a3fc..d498d9c74 100644 --- a/.ci/jenkins/Jenkinsfile.e2e.cluster +++ b/.ci/jenkins/Jenkinsfile.e2e.cluster @@ -18,7 +18,7 @@ pipeline { options { timeout(time: 3, unit: 'HOURS') timestamps() - }p/kind-logs/ + } stages { stage('Setup pipeline') { @@ -155,6 +155,7 @@ String getOperatorVersion() { void setupCluster() { switch (getClusterName()) { case kindClusterPlatform: + installKind() setupKind() break case openshiftClusterPlatform: @@ -165,6 +166,10 @@ void setupCluster() { } } +void installKind() { + return sh(script: "command -v kind >/dev/null || go install sigs.k8s.io/kind@${KIND_VERSION}", returnStdout: true).trim() +} + void setupKind() { // Start kind kind.start()