Merge pull request #234 from thaJeztah/remove_fossa_scan
Remove FOSSA checks from Jenkins CIpull/233/head
						commit
						54549235da
					
				@ -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'
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@ -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
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue