Merge "[VOL-2556] parameterize ONOS release for the nightly jobs"
diff --git a/jjb/pipeline/voltha-scale-measurements.groovy b/jjb/pipeline/voltha-scale-measurements.groovy
new file mode 100644
index 0000000..9059ad9
--- /dev/null
+++ b/jjb/pipeline/voltha-scale-measurements.groovy
@@ -0,0 +1,46 @@
+/* voltha-scale-measurements pipeline */
+pipeline {
+
+ /* no label, executor is determined by JJB */
+ agent {
+ label "${params.buildNode}"
+ }
+ stages {
+ stage('checkout') {
+ steps {
+ checkout([
+ $class: 'GitSCM',
+ userRemoteConfigs: [[ url: "https://github.com/ciena/kind-voltha.git", ]],
+ branches: [[ name: "master", ]],
+ extensions: [
+ [$class: 'WipeWorkspace'],
+ [$class: 'RelativeTargetDirectory', relativeTargetDir: "${params.projectName}"],
+ [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
+ ],
+ ])
+ script {
+ git_tags = sh(script:"cd $projectName; git tag -l --points-at HEAD", returnStdout: true).trim()
+ }
+ }
+ }
+ stage('start') {
+ steps {
+ sh """
+ #!/usr/bin/env bash
+ set -euo pipefail
+
+ echo "DO SOMETHING"
+ """
+ }
+ }
+ }
+ post {
+ cleanup {
+ sh '''
+ WAIT_ON_DOWN=y ./voltha down
+ cd $WORKSPACE/
+ rm -rf kind-voltha/ || true
+ '''
+ }
+ }
+}
diff --git a/jjb/voltha-scale.yaml b/jjb/voltha-scale.yaml
new file mode 100644
index 0000000..af154e3
--- /dev/null
+++ b/jjb/voltha-scale.yaml
@@ -0,0 +1,54 @@
+---
+# VOLTHA 2.x scale measurements
+
+- project:
+ name: voltha-scale
+
+ project-name: '{name}'
+
+ jobs:
+ - 'voltha-scale-measurements':
+ name: 'voltha-scale-measurements-manual'
+ build-node: 'voltha-scale'
+
+- job-template:
+ id: 'voltha-scale-measurements'
+ name: '{name}'
+ pipeline-script: 'voltha-scale-measurements.groovy'
+
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ Created by {id} job-template from ci-management/jjb/voltha-scale.yaml <br /><br />
+ Using pipeline {pipeline-script} <br/><br/>
+ Scale measurements for VOLTHA 2.x
+
+ 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: '{build-node}'
+ description: 'Name of the Jenkins node to run the job on'
+
+ - string:
+ name: onuCount
+ default: 1
+ description: 'Number of ONUs to provision'
+
+ - string:
+ name: ponCount
+ default: 1
+ description: 'Number of PONs to provision'
+
+ project-type: pipeline
+ concurrent: true
+
+ dsl: !include-raw-escape: pipeline/{pipeline-script}