From 231f983600d3edf05d38b921642f37113656f623 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 4 Mar 2020 13:01:41 +0100 Subject: [PATCH] Revert "Add FOSSA checks to Jenkins CI" This reverts commit 5f4d4a87f7f367fc00cc3c420174b9fdc35f1d7c. Signed-off-by: Sebastiaan van Stijn --- Jenkinsfile | 29 ----------------------------- Makefile.fossa | 18 ------------------ 2 files changed, 47 deletions(-) delete mode 100644 Jenkinsfile delete mode 100644 Makefile.fossa diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 77f8eba7..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,29 +0,0 @@ - -@Library('jps') -_ - -pipeline { - agent { - node { - label 'ubuntu-1804-overlay2' - } - } - options { - disableConcurrentBuilds() - } - stages { - stage("FOSSA Analyze") { - steps { - - withCredentials([string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY')]) { - withGithubStatus('FOSSA.scan') { - labelledShell returnStatus: false, returnStdout: true, label: "make fossa-analyze", - script:'make -f Makefile.fossa BRANCH_NAME=${BRANCH_NAME} fossa-analyze' - labelledShell returnStatus: false, returnStdout: true, label: "make fossa-test", - script: 'make -f Makefile.fossa BRANCH_NAME=${BRANCH_NAME} fossa-test' - } - } - } - } - } -} diff --git a/Makefile.fossa b/Makefile.fossa deleted file mode 100644 index b89ec555..00000000 --- a/Makefile.fossa +++ /dev/null @@ -1,18 +0,0 @@ -REPO_PATH?=docker/buildx -BUILD_ANALYZER?=docker/fossa-analyzer -FOSSA_OPTS?=--option all-tags:true --option allow-unresolved:true --no-ansi - -fossa-analyze: - docker run -i --rm -e FOSSA_API_KEY=$(FOSSA_API_KEY) \ - -v $(CURDIR)/$*:/go/src/github.com/$(REPO_PATH) \ - -w /go/src/github.com/$(REPO_PATH) \ - -e GO111MODULE=on \ - $(BUILD_ANALYZER) analyze $(FOSSA_OPTS) --branch $(BRANCH_NAME) - -# This command is used to run the fossa test command -fossa-test: - docker run -i --rm -e FOSSA_API_KEY=$(FOSSA_API_KEY) \ - -v $(CURDIR)/$*:/go/src/github.com/$(REPO_PATH) \ - -w /go/src/github.com/$(REPO_PATH) \ - -e GO111MODULE=on \ - $(BUILD_ANALYZER) test --debug