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:
Egon Elbre 2023-03-13 12:20:20 +02:00 committed by Michal Niewrzal
parent bf45e53169
commit 7fa1a633aa
2 changed files with 143 additions and 139 deletions

View File

@ -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') {
environment {
STORJ_TEST_COCKROACH = 'omit'

View File

@ -141,9 +141,6 @@ pipeline {
dir("testsuite/storjscan") {
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" ./...'
}
}