.Jenkinsfile > Add some ansible lint
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
8ca237c5f7
commit
be8c69b4b8
14
.Jenkinsfile
14
.Jenkinsfile
|
@ -6,6 +6,20 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Anible Lint') {
|
||||
agent {
|
||||
docker {
|
||||
image 'evolix/ansible-lint:latest'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
sh 'for role_dir in ./*/; do HOME=$WORKSPACE_TMP ansible-lint -p $role_dir >> lint.txt || : ; done'
|
||||
recordIssues(tools: [ansibleLint(pattern: 'lint.txt')])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build tagged docker image') {
|
||||
when {
|
||||
buildingTag()
|
||||
|
|
Loading…
Reference in a new issue