diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-10-10 17:20:58 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-10-10 17:20:58 +0300 |
commit | b55d8cfcfa3829f2e827c742d791935967ec33af (patch) | |
tree | e1fdbbd5ac9ff19b58c4bcfb4d19c3852bea452c /infrastructure-ansible-playbook.yaml | |
parent | 254c60805c9ab3ecb7bde4c3bdeadcc36c7d5883 (diff) |
infrastructure-ansible-playbook: rename file extension
Change-Id: I429b18a00d507050dc04ed2a3f3e34d739bb784f
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'infrastructure-ansible-playbook.yaml')
-rw-r--r-- | infrastructure-ansible-playbook.yaml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/infrastructure-ansible-playbook.yaml b/infrastructure-ansible-playbook.yaml new file mode 100644 index 0000000000..032d2816f1 --- /dev/null +++ b/infrastructure-ansible-playbook.yaml @@ -0,0 +1,50 @@ +- job: + name: infrastructure-ansible-playbook + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + linaro: + - job-build + - job-cancel + disabled: false + node: docker-xenial-amd64 + display-name: 'Infrastructure - Unit Test for the ansible-playbook repository' + concurrent: true + triggers: + - gerrit: + server-name: 'review.linaro.org' + override-votes: true + gerrit-build-successful-verified-value: 1 + gerrit-build-failed-verified-value: -1 + trigger-for-unreviewed-patches: true + readable-message: false + projects: + - project-compare-type: 'PLAIN' + project-pattern: 'infrastructure/ansible-playbooks' + branches: + - branch-compare-type: 'PLAIN' + branch-pattern: 'master' + wrappers: + - timeout: + timeout: 300 + - timestamps + builders: + - shell: | + #!/bin/bash + + sudo apt-get update + sudo apt-get install -y python-pip + sudo pip install ansible ansible-lint + + git clone https://git.linaro.org/$GERRIT_PROJECT -b $GERRIT_BRANCH + cd * + git log -n1 + git fetch https://review.linaro.org/$GERRIT_PROJECT $GERRIT_REFSPEC && git checkout FETCH_HEAD + ./tests/unit-test.sh |