Merge "VOL-2187 WIP add scale test jenkins job using ec2"
diff --git a/jjb/bbsim-e2e-scale.yaml b/jjb/bbsim-e2e-scale.yaml
new file mode 100644
index 0000000..741941a
--- /dev/null
+++ b/jjb/bbsim-e2e-scale.yaml
@@ -0,0 +1,40 @@
+---
+# bbsim end to end scale test job
+
+- project:
+ name: bbsim-e2e-scale
+
+ project-name: '{name}'
+
+ jobs:
+ - 'bbsim-e2e-setup'
+
+- job-template:
+ id: 'bbsim-e2e-setup'
+ name: 'bbsim-end-to-end-setup'
+
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ Created by {id} job-template from ci-management/jjb/bbsim-e2e-scale.yaml <br /><br />
+ E2E Validation for Seba-in-a-Box
+
+ properties:
+ - cord-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+ artifact-num-to-keep: '{artifact-num-to-keep}'
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: '{build-timeout}'
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ parameters:
+ - string:
+ name: buildNode
+ default: 'ubuntu16.04-basebuild-4c-8g'
+ description: 'Name of the Jenkins node to run the job on'
+
+ project-type: pipeline
+ concurrent: false
+
+ dsl: !include-raw-escape: pipeline/bbsim-scale.groovy
diff --git a/jjb/pipeline/bbsim-scale.groovy b/jjb/pipeline/bbsim-scale.groovy
new file mode 100644
index 0000000..1d92c19
--- /dev/null
+++ b/jjb/pipeline/bbsim-scale.groovy
@@ -0,0 +1,63 @@
+/* seba-in-a-box build+test */
+
+pipeline {
+
+ /* no label, executor is determined by JJB */
+ agent {
+ label "${params.buildNode}"
+ }
+
+ options {
+ timeout(time: 90, unit: 'MINUTES')
+ }
+
+ environment {
+ VOLTHA_LOG_LEVEL="DEBUG"
+ TYPE="minimal"
+ WITH_RADIUS="y"
+ WITH_BBSIM="y"
+ INSTALL_ONOS_APPS="y"
+ CONFIG_SADIS="y"
+ FANCY=0
+ WITH_SIM_ADAPTERS="n"
+ }
+
+ stages {
+
+ stage('Create K8s Cluster') {
+ steps {
+ sh """
+ git clone https://github.com/ciena/kind-voltha.git
+ cd kind-voltha/
+ DEPLOY_K8S=y JUST_K8S=y ./voltha up
+ """
+ }
+ }
+
+ stage('Deploy Voltha') {
+ steps {
+ sh '''
+ cd $WORKSPACE/kind-voltha/
+ echo \$HELM_FLAG
+ ./voltha up
+ '''
+ }
+ }
+
+
+ }
+
+ post {
+ always {
+ sh '''
+ WAIT_ON_DOWN=y ./voltha down
+ cd $WORKSPACE/
+ rm -rf kind-voltha/ voltha/ || true
+ '''
+ }
+ failure {
+ sh '''
+ '''
+ }
+ }
+}