adding logging infrastructure to build pipelines
Change-Id: Ibb1f65e24e0441061acb975132c02ce7a5400c94
diff --git a/Jenkinsfile-attworkflow-build b/Jenkinsfile-attworkflow-build
index 4989ca2..1401c63 100644
--- a/Jenkinsfile-attworkflow-build
+++ b/Jenkinsfile-attworkflow-build
@@ -53,6 +53,43 @@
}
}
dir ("helm-charts") {
+ stage('Install CORD Kafka') {
+ timeout(10) {
+ sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
+ helm install -f examples/kafka-single.yaml --version 0.8.8 -n cord-kafka incubator/kafka
+ """
+ }
+ timeout(10) {
+ waitUntil {
+ kafka_instances_running = sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
+ kubectl get pods | grep cord-kafka | grep -i running | grep 1/1 | wc -l
+ """
+ return kafka_instances_running.toInteger() == 2
+ }
+ }
+ }
+ stage('Install Logging Infrastructure') {
+ timeout(10) {
+ sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
+ helm dep update logging
+ helm install -f examples/logging-single.yaml -n logging logging
+ scripts/wait_for_pods.sh
+ """
+ }
+ }
+ stage('Install Monitoring Infrastructure') {
+ timeout(10) {
+ sh returnStdout: true, script: """
+ export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
+ helm dep update nem-monitoring
+ helm install -n nem-monitoring nem-monitoring
+ scripts/wait_for_pods.sh
+ """
+ }
+ }
stage('Install voltha') {
timeout(10) {
sh returnStdout: true, script: """
@@ -73,23 +110,6 @@
}
}
}
- stage('Install CORD Kafka') {
- timeout(10) {
- sh returnStdout: true, script: """
- export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf
- helm install -f examples/kafka-single.yaml --version 0.8.8 -n cord-kafka incubator/kafka
- """
- }
- timeout(10) {
- waitUntil {
- kafka_instances_running = sh returnStdout: true, script: """
- export KUBECONFIG=$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf &&
- kubectl get pods | grep cord-kafka | grep -i running | grep 1/1 | wc -l
- """
- return kafka_instances_running.toInteger() == 2
- }
- }
- }
stage('Install ONOS') {
timeout(10) {
sh returnStdout: true, script: """