1 Star 0 Fork 9

jee/Cilium

forked from Gitee 极速下载/Cilium 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ginkgo-all.Jenkinsfile 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
Eloy Coto 提交于 2018-02-27 12:05 . Jenkins: Updated Jenkinsfiles agents
pipeline {
agent {
label 'baremetal'
}
environment {
PROJ_PATH = "src/github.com/cilium/cilium"
}
options {
timeout(time: 120, unit: 'MINUTES')
timestamps()
}
stages {
stage('Checkout') {
steps {
sh 'env'
sh 'rm -rf src; mkdir -p src/github.com/cilium'
sh 'ln -s $WORKSPACE src/github.com/cilium/cilium'
checkout scm
}
}
stage('UnitTesting') {
environment {
GOPATH="${WORKSPACE}"
TESTDIR="${WORKSPACE}/${PROJ_PATH}/"
}
steps {
sh "cd ${TESTDIR}; make tests-ginkgo"
}
post {
always {
sh "cd ${TESTDIR}; make clean-ginkgo-tests || true"
}
}
}
stage('Boot VMs'){
environment {
GOPATH="${WORKSPACE}"
TESTDIR="${WORKSPACE}/${PROJ_PATH}/test"
}
steps {
sh 'cd ${TESTDIR}; K8S_VERSION=1.8 vagrant up --no-provision'
sh 'cd ${TESTDIR}; K8S_VERSION=1.6 vagrant up --no-provision'
}
post {
failure {
sh "cd ${TESTDIR}; K8S_VERSION=1.8 vagrant destroy -f || true"
sh "cd ${TESTDIR}; K8S_VERSION=1.6 vagrant destroy -f || true"
}
}
}
stage('BDD-Test') {
environment {
GOPATH="${WORKSPACE}"
TESTDIR="${WORKSPACE}/${PROJ_PATH}/test"
}
options {
timeout(time: 60, unit: 'MINUTES')
}
steps {
parallel(
"Runtime":{
sh 'cd ${TESTDIR}; ginkgo --focus="Runtime*" -v -noColor'
},
"K8s-1.8":{
sh 'cd ${TESTDIR}; K8S_VERSION=1.8 ginkgo --focus=" K8s*" -noColor'
},
"K8s-1.6":{
sh 'cd ${TESTDIR}; K8S_VERSION=1.6 ginkgo --focus=" K8s*" -noColor'
},
failFast: true
)
}
post {
always {
junit 'test/*.xml'
// Temporary workaround to test cleanup
// rm -rf ${GOPATH}/src/github.com/cilium/cilium
sh 'cd test/; ./post_build_agent.sh || true'
sh 'cd test/; K8S_VERSION=1.8 vagrant destroy -f || true'
sh 'cd test/; K8S_VERSION=1.6 vagrant destroy -f || true'
sh 'cd test/; ./archive_test_results.sh || true'
archiveArtifacts artifacts: "test_results_${JOB_BASE_NAME}_${BUILD_NUMBER}.tar", allowEmptyArchive: true
}
}
}
}
post {
always {
cleanWs()
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jempson/Cilium.git
git@gitee.com:jempson/Cilium.git
jempson
Cilium
Cilium
master

搜索帮助