Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Run fossa analysis in a distinct pipeline #670

Merged
merged 1 commit into from
Oct 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 0 additions & 26 deletions Jenkinsfile.baguette
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,6 @@ pipeline {
}
}
}
stage("License Scan") {
when {
anyOf {
changeset "Gopkg.lock"
branch "master"
}
}
agent {
label 'ubuntu-1604-aufs-edge'
}
steps {
withCredentials([
usernamePassword(credentialsId: 'dockerbuildbot-hub.docker.com', usernameVariable: 'REGISTRY_USERNAME', passwordVariable: 'REGISTRY_PASSWORD'),
string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY')
]) {
dir('src/github.com/docker/app') {
checkout scm
ansiColor('xterm') {
sh 'echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin'
sh "FOSSA_API_KEY=$FOSSA_API_KEY BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
sh "FOSSA_API_KEY=$FOSSA_API_KEY make fossa-test"
}
}
}
}
}
stage('Invocation image'){
agent {
label 'ubuntu-1804'
Expand Down
45 changes: 45 additions & 0 deletions Jenkinsfile.fossa
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])

pipeline {
agent {
label 'ubuntu-1804'
}

options {
skipDefaultCheckout(true)
}

environment {
TAG = tag()
BUILD_TAG = tag()
}

stages {
stage("License Scan") {
when {
anyOf {
changeset "Gopkg.lock"
branch "master"
}
}
agent {
label 'ubuntu-1604-aufs-edge'
}
steps {
withCredentials([
usernamePassword(credentialsId: 'dockerbuildbot-hub.docker.com', usernameVariable: 'REGISTRY_USERNAME', passwordVariable: 'REGISTRY_PASSWORD'),
string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY')
]) {
dir('src/github.com/docker/app') {
checkout scm
ansiColor('xterm') {
sh 'echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin'
sh "FOSSA_API_KEY=$FOSSA_API_KEY BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
sh "FOSSA_API_KEY=$FOSSA_API_KEY make fossa-test"
}
}
}
}
}
}
}