Skip to content

Instantly share code, notes, and snippets.

@egernst
Created September 11, 2019 19:55
Show Gist options
  • Save egernst/a38a7c9a7b3b9b40c678a33bbf2882de to your computer and use it in GitHub Desktop.
Save egernst/a38a7c9a7b3b9b40c678a33bbf2882de to your computer and use it in GitHub Desktop.
snippet of firecracker ci job
#!/bin/bash
set -e
export ghprbPullId
export ghprbTargetBranch
export KATA_DEV_MODE="false"
export KATA_HYPERVISOR="firecracker"
export CI="true"
export CI_JOB="FIRECRACKER"
export GOPATH=${WORKSPACE}/go
export PATH=${GOPATH}/bin:/usr/local/go/bin:/usr/sbin:${PATH}
export GOROOT="/usr/local/go"
tests_repo_dir="${GOPATH}/src/github.com/kata-containers/tests"
mkdir -p "${tests_repo_dir}"
git clone https://github.com/kata-containers/tests.git "${tests_repo_dir}"
cd "${tests_repo_dir}"
.ci/jenkins_job_build.sh "github.com/kata-containers/runtime"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment