ci: move go-licenses check to premerge
License check is unlikely to fail, hence it's better to do it as part of premerge rather than verify. Also, fix indentation in Jenkinsfile. Change-Id: Ifb37b92a88eb743a28847d84ed63c0e2e784dbe2
This commit is contained in:
parent
bf45e53169
commit
7fa1a633aa
@ -132,6 +132,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Lint') {
|
||||||
|
steps {
|
||||||
|
// go-licenses by default has AGPL3 in the forbidden list, hence we need to explicitly allow `storj.io/storj`.
|
||||||
|
sh 'go-licenses check --ignore "storj.io/storj" ./...'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Check Benchmark') {
|
stage('Check Benchmark') {
|
||||||
environment {
|
environment {
|
||||||
STORJ_TEST_COCKROACH = 'omit'
|
STORJ_TEST_COCKROACH = 'omit'
|
||||||
|
@ -141,9 +141,6 @@ pipeline {
|
|||||||
dir("testsuite/storjscan") {
|
dir("testsuite/storjscan") {
|
||||||
sh 'go vet ./...'
|
sh 'go vet ./...'
|
||||||
}
|
}
|
||||||
|
|
||||||
// go-licenses by default has AGPL3 in the forbidden list, hence we need to explicitly allow `storj.io/storj`.
|
|
||||||
sh 'go-licenses check --ignore "storj.io/storj" ./...'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user