blob: 9059ad937a59e96cbd0026251e1a0a2a3a39e730 [file] [log] [blame]
/* 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
'''
}
}
}