fixing jenkinsfile
Some checks failed
gitea-deepak/gogmagog/pipeline/head There was a failure building this commit

This commit is contained in:
2020-12-24 22:06:19 -06:00
parent 56f747640f
commit a4094ba801

32
Jenkinsfile vendored
View File

@@ -20,20 +20,28 @@ pipeline {
}
}
stage('Test') {
steps {
echo 'Running vetting'
sh 'go vet .'
echo 'Running linting'
sh 'golint .'
echo 'Running test'
sh 'go test -v ./...'
}
}
stage('Code Analysis') {
steps {
parallel{
stage('golint') {
steps {
echo 'Running linting'
sh 'golint .'
}
}
stage('go vet') {
steps {
echo 'Running vetting'
sh 'go vet .'
}
}
stage('test') {
steps {
echo 'Running test'
sh 'go test -v ./...'
}
}
}
}
}
post {
always {