@@ -3,15 +3,14 @@ pipeline {
33 label " master"
44 }
55 options {
6- timeout(time : 3 , unit : " HOURS" )
6+ timeout(time : 4 , unit : " HOURS" )
77 }
88 environment {
99 GO111MODULE = " on"
1010 REG = " cloud-native-image-registry.westus.cloudapp.azure.com/"
1111 RUNC_VERSION = " v1.0.0-rc92"
12- CRIO_VERSION = " v1.18.2 "
12+ CRIO_VERSION = " v1.19.0 "
1313 GOLANGCI_LINT_VERSION = " v1.30.0"
14- BUILDAH_VERSION = " v1.15.0"
1514 GO_VERSION = " 1.15.3"
1615 GO_TAR = " go${ GO_VERSION} .linux-amd64.tar.gz"
1716 GOROOT = " /usr/local/go"
@@ -31,7 +30,7 @@ pipeline {
3130 }
3231 stage(" Build && Publish" ) {
3332 agent {
34- label " xenial -intel-device-plugins"
33+ label " bionic -intel-device-plugins"
3534 }
3635 stages {
3736 stage(" Get requirements" ) {
@@ -42,27 +41,19 @@ pipeline {
4241 sh " mkdir -p $GOPATH /src/github.com/intel $GOPATH /bin"
4342 sh " cp -rf ${ env.WORKSPACE} $REPO_DIR "
4443 sh " curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${ GOPATH} /bin ${ GOLANGCI_LINT_VERSION} "
45- sh " sudo apt-get update"
46- sh " sudo apt-get -y install e2fslibs-dev libfuse-dev libgpgme11-dev libdevmapper-dev libglib2.0-dev libprotobuf-dev libusb-1.0-0-dev"
47- sh " mkdir -p ${ GOPATH} /src/github.com/containers"
48- dir(path : " ${ GOPATH} /src/github.com/containers" ) {
49- sh " git clone --single-branch --depth 1 -b $BUILDAH_VERSION https://github.com/containers/buildah"
50- }
51- dir(path : " ${ GOPATH} /src/github.com/containers/buildah" ) {
52- sh ' make buildah TAGS=""'
53- sh " sudo cp buildah /usr/local/bin"
54- sh " sudo mkdir -p /etc/containers"
55- sh " sudo mkdir -p /etc/cni/net.d"
56- sh " sudo mkdir -p /opt/cni/bin"
57- sh " sed -i -e 's/build.sh/build_linux.sh/' Makefile"
58- sh " make install.cni.sudo"
59- sh ''' echo '[registries.search]' > registries.conf'''
60- sh ''' echo 'registries = ["docker.io"]' >> registries.conf'''
61- sh " sudo mv registries.conf /etc/containers/registries.conf"
62- sh " sudo curl https://raw.githubusercontent.com/kubernetes-sigs/cri-o/$CRIO_VERSION /test/policy.json -o /etc/containers/policy.json"
63- sh " sudo curl -L https://github.com/opencontainers/runc/releases/download/$RUNC_VERSION /runc.amd64 -o /usr/bin/runc"
64- sh " sudo chmod +x /usr/bin/runc"
65- }
44+ sh ''' #!/usr/bin/env bash
45+ . /etc/os-release
46+ REPOURL=http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${ID^}_${VERSION_ID}
47+ echo "deb ${REPOURL} /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
48+ wget -nv ${REPOURL}/Release.key -O - | sudo apt-key add -
49+ '''
50+ sh " sudo apt-get update -qq"
51+ sh " sudo apt-get -qq -y install libusb-1.0-0-dev buildah make gcc pkg-config"
52+ sh " sudo curl https://raw.githubusercontent.com/cri-o/cri-o/${ CRIO_VERSION} /test/policy.json -o /etc/containers/policy.json"
53+ sh " sudo curl https://raw.githubusercontent.com/cri-o/cri-o/${ CRIO_VERSION} /test/registries.conf -o /etc/containers/registries.conf"
54+ sh " sudo sed -i -e 's/quay/docker/' /etc/containers/registries.conf"
55+ sh " sudo curl -L https://github.com/opencontainers/runc/releases/download/$RUNC_VERSION /runc.amd64 -o /usr/bin/runc"
56+ sh " sudo chmod +x /usr/bin/runc"
6657 }
6758 }
6859 stage(" make go-mod-tidy" ) {
0 commit comments