diff --git a/jenkins/jobs/ansible-role-jobs.yaml b/jenkins/jobs/ansible-role-jobs.yaml index d7c05f1ae9..4d9b72fa49 100644 --- a/jenkins/jobs/ansible-role-jobs.yaml +++ b/jenkins/jobs/ansible-role-jobs.yaml @@ -1,9 +1,10 @@ +# TODO(yolanda): Pin to 1.9.4 since ansible-lint does not support 2.0 - job-template: name: 'gate-{name}-ansible-lint' node: '{node}' builders: - - ansible-prep + - ansible-prep-pinned - ansible-lint-prep - revoke-sudo - gerrit-git-prep diff --git a/jenkins/jobs/macros.yaml b/jenkins/jobs/macros.yaml index 779e326f31..9294be0567 100644 --- a/jenkins/jobs/macros.yaml +++ b/jenkins/jobs/macros.yaml @@ -335,6 +335,14 @@ #!/bin/bash -xe sudo -H pip install -U ansible +# TODO (yolanda): Pin to 1.9.4 since ansible-lint does not support 2.0 +- builder: + name: ansible-prep-pinned + builders: + - shell: | + #!/bin/bash -xe + sudo -H pip install -U ansible==1.9.4 + - builder: name: ansible-syntax builders: