diff --git a/.Jenkinsfile b/.Jenkinsfile index 3f591b98..49fc9915 100644 --- a/.Jenkinsfile +++ b/.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()