Revision 2e2a56105ce6189243b2c6db79cea676b5cad2c1 authored by Sebastian Wicki on 10 February 2020, 14:09:46 UTC, committed by André Martins on 12 February 2020, 11:25:28 UTC
[ upstream commit afb38e86b9092bea7e88fc163f6e9791a7ee4f80 ] This is will be used to fetch the IPv6 backends for endpoints with a certain Kubernetes or Cilium label. Signed-off-by: Sebastian Wicki <sebastian@isovalent.com> Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
1 parent 677d725
Jenkinsfile.nightly
@Library('cilium') _
pipeline {
agent {
label 'baremetal'
}
parameters {
string(defaultValue: '${ghprbPullDescription}', name: 'ghprbPullDescription')
string(defaultValue: '${ghprbActualCommit}', name: 'ghprbActualCommit')
string(defaultValue: '${ghprbTriggerAuthorLoginMention}', name: 'ghprbTriggerAuthorLoginMention')
string(defaultValue: '${ghprbPullAuthorLoginMention}', name: 'ghprbPullAuthorLoginMention')
string(defaultValue: '${ghprbGhRepository}', name: 'ghprbGhRepository')
string(defaultValue: '${ghprbPullLongDescription}', name: 'ghprbPullLongDescription')
string(defaultValue: '${ghprbCredentialsId}', name: 'ghprbCredentialsId')
string(defaultValue: '${ghprbTriggerAuthorLogin}', name: 'ghprbTriggerAuthorLogin')
string(defaultValue: '${ghprbPullAuthorLogin}', name: 'ghprbPullAuthorLogin')
string(defaultValue: '${ghprbTriggerAuthor}', name: 'ghprbTriggerAuthor')
string(defaultValue: '${ghprbCommentBody}', name: 'ghprbCommentBody')
string(defaultValue: '${ghprbPullTitle}', name: 'ghprbPullTitle')
string(defaultValue: '${ghprbPullLink}', name: 'ghprbPullLink')
string(defaultValue: '${ghprbAuthorRepoGitUrl}', name: 'ghprbAuthorRepoGitUrl')
string(defaultValue: '${ghprbTargetBranch}', name: 'ghprbTargetBranch')
string(defaultValue: '${ghprbPullId}', name: 'ghprbPullId')
string(defaultValue: '${ghprbActualCommitAuthor}', name: 'ghprbActualCommitAuthor')
string(defaultValue: '${ghprbActualCommitAuthorEmail}', name: 'ghprbActualCommitAuthorEmail')
string(defaultValue: '${ghprbTriggerAuthorEmail}', name: 'ghprbTriggerAuthorEmail')
string(defaultValue: '${GIT_BRANCH}', name: 'GIT_BRANCH')
string(defaultValue: '${ghprbPullAuthorEmail}', name: 'ghprbPullAuthorEmail')
string(defaultValue: '${sha1}', name: 'sha1')
string(defaultValue: '${ghprbSourceBranch}', name: 'ghprbSourceBranch')
}
environment {
PROJ_PATH = "src/github.com/cilium/cilium"
GOPATH = "${WORKSPACE}"
TESTDIR = "${WORKSPACE}/${PROJ_PATH}/test"
SERVER_BOX = "cilium/ubuntu"
NIGHTLY_TAG = "${new Date().format("yyyyMMdd")}-${BUILD_NUMBER}"
}
options {
timeout(time: 700, unit: 'MINUTES')
timestamps()
ansiColor('xterm')
}
stages {
stage('Checkout') {
steps {
Status("PENDING", "$JOB_BASE_NAME")
sh 'env'
sh 'rm -rf src; mkdir -p src/github.com/cilium'
sh 'ln -s $WORKSPACE src/github.com/cilium/cilium'
checkout scm
sh '/usr/local/bin/cleanup || true'
}
}
stage('Preload vagrant boxes') {
steps {
sh '/usr/local/bin/add_vagrant_box ${WORKSPACE}/${PROJ_PATH}/vagrant_box_defaults.rb'
}
post {
unsuccessful {
script {
if (!currentBuild.displayName.contains('fail')) {
currentBuild.displayName = 'preload vagrant boxes fail' + currentBuild.displayName
}
}
}
}
}
stage('Nightly-Docker-Image') {
when {
environment name: 'GIT_BRANCH', value: 'origin/master'
}
steps {
withDockerRegistry([ credentialsId: "NIGHTLY_DOCKER_HUB_CRED", url: "" ]) {
sh 'make docker-image'
sh 'docker tag cilium/cilium:latest cilium/nightly:latest'
sh 'docker tag cilium/nightly:latest cilium/nightly:${NIGHTLY_TAG}'
sh 'docker push cilium/nightly:${NIGHTLY_TAG}'
sh 'docker push cilium/nightly:latest'
}
}
}
stage('Nightly-Tests') {
environment {
K8S_NODES=4
K8S_VERSION=1.12
VM_MEMORY=4096
VM_CPUS=4
FAILFAST=setIfLabel("ci/fail-fast", "true", "false")
}
options {
timeout(time: 460, unit: 'MINUTES')
}
steps {
parallel(
"Nightly":{
sh 'cd ${TESTDIR}; ginkgo --focus="Nightly*" -v --failFast=${FAILFAST} -- -cilium.timeout=450m'
},
)
}
post {
always {
sh 'cd test/; ./post_build_agent.sh || true'
sh 'cd test/; vagrant destroy -f || true'
sh 'cd test/; ./archive_test_results.sh || true'
archiveArtifacts artifacts: '*.zip'
junit testDataPublishers: [[$class: 'AttachmentPublisher']], testResults: 'test/*.xml'
}
}
}
}
post {
always {
sh "cd ${TESTDIR}; K8S_VERSION=1.12 vagrant destroy -f || true"
sh "cd ${TESTDIR}; vagrant destroy -f || true"
sh 'cd ${TEST_DIR}; ./post_build_agent.sh || true'
cleanWs()
sh '/usr/local/bin/cleanup || true'
}
success {
Status("SUCCESS", "$JOB_BASE_NAME")
}
failure {
Status("FAILURE", "$JOB_BASE_NAME")
}
}
}
Computing file changes ...