From 91c3d64fc024189eab7cc981f379255e64898d03 Mon Sep 17 00:00:00 2001 From: Olev Kartau Date: Wed, 11 Nov 2020 14:10:23 +0200 Subject: [PATCH] Jenkinsfile: do not use parallel method and extra stages Use of parallel creates race possibility as installation of go happens in one part but is used in another. --- Jenkinsfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a95c2e7..de8896d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,8 +35,6 @@ pipeline { } stages { stage("Get requirements") { - parallel { - stage("go") { steps { sh "curl -O https://dl.google.com/go/${GO_TAR}" sh "tar -xvf $GO_TAR" @@ -44,10 +42,6 @@ pipeline { sh "mkdir -p $GOPATH/src/github.com/intel $GOPATH/bin" sh "cp -rf ${env.WORKSPACE} $REPO_DIR" sh "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin ${GOLANGCI_LINT_VERSION}" - } - } - stage("buildah") { - steps { sh "sudo apt-get update" sh "sudo apt-get -y install e2fslibs-dev libfuse-dev libgpgme11-dev libdevmapper-dev libglib2.0-dev libprotobuf-dev libusb-1.0-0-dev" sh "mkdir -p ${GOPATH}/src/github.com/containers" @@ -70,8 +64,6 @@ pipeline { sh "sudo chmod +x /usr/bin/runc" } } - } - } } stage("make go-mod-tidy") { steps {