From e15930bcc65d07195197d0b11a1d0481ebff7181 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Wed, 13 Jan 2016 12:53:05 +0100 Subject: [PATCH] Temporarily pin to ansible==1.9.4 New ansible 2.0 doesn't support ansible-lint This is shown on https://github.com/willthames/ansible-lint/issues/75, and is breaking our ansible-lint tests. Change-Id: I3eef420084104eead1fb24eb537723214296fa5d --- jenkins/jobs/ansible-role-jobs.yaml | 3 ++- jenkins/jobs/macros.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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: