Create skeleton for VOLTHA scale job
Change-Id: Ifa71282c4f90ef3e8dff2b48434d13033af55d95
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
+ '''
+ }
+ }
+}