Skip to content

Instantly share code, notes, and snippets.

@jcvenegas
Created July 22, 2020 21:24
Show Gist options
  • Save jcvenegas/22205111fd41f8d995435bd9779970fd to your computer and use it in GitHub Desktop.
Save jcvenegas/22205111fd41f8d995435bd9779970fd to your computer and use it in GitHub Desktop.
ubuntu-default-job-2.0
#!/bin/bash
set -e
export ghprbPullId
export ghprbTargetBranch
export DEBUG=true
export CI="true"
export CI_JOB="CRI_CONTAINERD_K8S"
export SHIMV2_TEST="true"
export GOPATH=${WORKSPACE}/go
export PATH=${GOPATH}/bin:/usr/local/go/bin:/usr/sbin:${PATH}
export GOROOT="/usr/local/go"
# TEST
kata_repo="github.com/kata-containers/kata-containers"
kata_repo_dir="${GOPATH}/src/${kata_repo}"
mkdir -p "${kata_repo_dir}"
git clone "https://${kata_repo}.git" "${kata_repo_dir}"
cd "${kata_repo_dir}"
# Checkout to 2.0-dev
git checkout "$ghprbTargetBranch"
# END TEST
tests_repo="github.com/kata-containers/tests"
tests_repo_dir="${GOPATH}/src/${tests_repo}"
mkdir -p "${tests_repo_dir}"
git clone "https://${tests_repo}.git" "${tests_repo_dir}"
cd "${tests_repo_dir}"
# Checkout to Target Branch, which should be 2.0-dev
git checkout "$ghprbTargetBranch"
.ci/jenkins_job_build.sh "github.com/kata-containers/kata-containers"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment