Modify Jenkins deployment script to make more stable
1. Remove the SR-IOV Plugin Installation
> Since our cni-config is stable,
we only need to install the plugin config once,
if we delete them and install again, it may cause built-in multus cni crash.
2. Add waituntil on both BBU and SPGW-U
> Although I upgrade the ixgbe driver version in our cluster,
but it still have the probability to crash the node.
So I would prefer to use the wait loop for doing the cable trick.
If the POD works, then this waituntil loop will be ignored.
Change-Id: Ia767865c0b8efe9e93645fe062c4e6bd09c96617
diff --git a/Jenkinsfile-mcord-remote-build b/Jenkinsfile-mcord-remote-build
index 102691e..5673a80 100644
--- a/Jenkinsfile-mcord-remote-build
+++ b/Jenkinsfile-mcord-remote-build
@@ -20,6 +20,7 @@
sh returnStdout: true, script: "git clone -b ${branch} ${cordRepoUrl}/helm-repo-tools"
sh returnStdout: true, script: "git clone -b ${branch} ${cordRepoUrl}/helm-charts"
sh returnStdout: true, script: "git clone -b ${branch} ${cordRepoUrl}/${configBaseDir}"
+
deployment_config = readYaml file: "${configBaseDir}/${configDeploymentDir}/${configFileName}.yaml"
}
stage('Clean up') {
@@ -80,8 +81,6 @@
}
}
-
-
stage("Install M-CORD Control Plane Services") {
sh returnStdout: true, script: """
export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
@@ -118,6 +117,7 @@
currentBuild.result = 'SUCCESS'
} catch (err) {
+ println err.message
currentBuild.result = 'FAILURE'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false])
}