From 6fb9b4b231e8b96c59515daf3f6c1ec7134e58fb Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 16 Dec 2019 17:28:57 +0200 Subject: [PATCH] ci: remove Jenkinsfile.drpc Change-Id: I3efa15df271bad42a946f8eb3b3a0d5156cb6cf4 --- Jenkinsfile.drpc | 89 ------------------------------------------------ 1 file changed, 89 deletions(-) delete mode 100644 Jenkinsfile.drpc diff --git a/Jenkinsfile.drpc b/Jenkinsfile.drpc deleted file mode 100644 index 41b936d4c..000000000 --- a/Jenkinsfile.drpc +++ /dev/null @@ -1,89 +0,0 @@ -pipeline { - agent { - dockerfile { - filename 'Dockerfile.jenkins' - args '-u root:root --cap-add SYS_PTRACE -v "/tmp/gomod":/go/pkg/mod' - label 'main' - } - } - options { - timeout(time: 26, unit: 'MINUTES') - } - environment { - GOFLAGS = '-tags=drpc' - } - stages { - stage('Build') { - steps { - checkout scm - - sh 'mkdir -p .build' - - // make a backup of the mod file in case, for later linting - sh 'cp go.mod .build/go.mod.orig' - - // download dependencies - sh 'go mod download' - - sh 'go env' - - sh 'make -j3 build-packages' - sh 'make install-sim' - - sh 'service postgresql start' - } - } - - stage('Test') { - parallel { - stage('Test') { - environment { - STORJ_POSTGRES_TEST = 'postgres://postgres@localhost/teststorjdrpc?sslmode=disable' - } - steps { - sh 'go env' - sh 'psql -U postgres -c \'create database teststorjdrpc;\'' - sh 'go run scripts/use-ports.go -from 1024 -to 10000 &' - sh 'go test -parallel 4 -p 6 -vet=off -timeout 20m -json -race ./... 2>&1 | tee .build/testsdrpc.json | go run ./scripts/xunit.go -out .build/testsdrpc.xml' - sh 'go run scripts/check-clean-directory.go' - } - post { - always { - sh script: 'cat .build/tests.json | tparse -all -top -slow 100', returnStatus: true - archiveArtifacts artifacts: '.build/testsdrpc.json' - junit '.build/testsdrpc.xml' - } - } - } - - stage('Sanity Check') { - steps { - sh 'go test -run TestRPCBuild -v ./pkg/rpc' - } - } - - stage('Integration') { - environment { - // use different hostname to avoid port conflicts - STORJ_NETWORK_HOST4 = '127.0.0.2' - STORJ_NETWORK_HOST6 = '127.0.0.2' - STORJ_SIM_POSTGRES = 'postgres://postgres@localhost/teststorjdrpc2?sslmode=disable' - } - steps { - sh 'go env' - sh 'echo which-storj-sim $(which storj-sim)' - sh 'psql -U postgres -c \'create database teststorjdrpc2;\'' - sh 'make test-sim' - } - } - } - } - } - - post { - always { - sh "chmod -R 777 ." // ensure Jenkins agent can delete the working directory - deleteDir() - } - } -}