2021-08-22 12:52:48 -07:00
|
|
|
final kubeCleanup = "kubectl delete --namespace=\$DEPLOY_NS service,statefulset,configmap,pod --all"
|
|
|
|
|
2021-08-17 13:34:14 -07:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage('Parallel') {
|
|
|
|
parallel {
|
|
|
|
stage('Test') {
|
|
|
|
agent {
|
|
|
|
node {
|
|
|
|
label ""
|
|
|
|
customWorkspace '/home/ci/wormhole'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
gerritCheck checks: ['jenkins:test': 'RUNNING'], message: "Running on ${env.NODE_NAME}"
|
2021-08-22 12:52:48 -07:00
|
|
|
|
|
|
|
echo "Gerrit change: ${GERRIT_CHANGE_URL}"
|
|
|
|
echo "Tilt progress dashboard: https://${DASHBOARD_URL}"
|
|
|
|
|
|
|
|
sh """
|
|
|
|
kubectl config set-context ci --namespace=$DEPLOY_NS
|
2021-08-23 23:01:00 -07:00
|
|
|
kubectl config use-context ci
|
2021-08-22 12:52:48 -07:00
|
|
|
"""
|
|
|
|
|
|
|
|
sh kubeCleanup
|
|
|
|
|
|
|
|
sh "./generate-wasm.sh"
|
|
|
|
|
|
|
|
timeout(time: 60, unit: 'MINUTES') {
|
|
|
|
sh "tilt ci -- --ci --namespace=$DEPLOY_NS --num=1"
|
|
|
|
}
|
2021-08-17 13:34:14 -07:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
2021-08-22 12:52:48 -07:00
|
|
|
gerritReview labels: [Verified: 1]
|
2021-08-17 13:34:14 -07:00
|
|
|
gerritCheck checks: ['jenkins:test': 'SUCCESSFUL']
|
|
|
|
}
|
|
|
|
unsuccessful {
|
2021-08-22 12:52:48 -07:00
|
|
|
gerritReview labels: [Verified: -1]
|
2021-08-17 13:34:14 -07:00
|
|
|
gerritCheck checks: ['jenkins:test': 'FAILED']
|
|
|
|
}
|
2021-08-22 12:52:48 -07:00
|
|
|
cleanup {
|
|
|
|
sh kubeCleanup
|
|
|
|
}
|
2021-08-17 13:34:14 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|