Actualiser jenkinsfile
Some checks failed
hash_utils/pipeline/head There was a failure building this commit
Some checks failed
hash_utils/pipeline/head There was a failure building this commit
This commit is contained in:
11
jenkinsfile
11
jenkinsfile
@@ -2,6 +2,17 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
stage('Audit') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
go install github.com/securego/gosec/v2/cmd/gosec@v2.22.8
|
||||||
|
go install honnef.co/go/tools/cmd/staticcheck@v0.6.1
|
||||||
|
|
||||||
|
/var/lib/jenkins/go/bin/staticcheck ./...
|
||||||
|
/var/lib/jenkins/go/bin/gosec -exclude="G401,G501,G103" ./...
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './build.sh'
|
sh './build.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user