.Jenkinsfile > Add some ansible lint
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Ludovic Poujol 2022-12-27 16:19:00 +01:00
parent 8ca237c5f7
commit be8c69b4b8
1 changed files with 14 additions and 0 deletions

View File

@ -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()