Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (33 sloc) 1.14 KB
---
# This JJB template is intended to provide a way to install 'cinch' on RHEL7
# Jenkins masters without needing shell/SSH access. Just create the job using
# the jenkins-jobs command and run it to install 'cinch'.
- job:
name: 'install-cinch-rhel7'
node: master
parameters:
- bool:
name: DELETE_VENV
default: false
description: "Delete pre-existing linchpin/cinch virtualenvs and re-install"
wrappers:
- ansicolor
- workspace-cleanup
- timestamps
scm:
- git:
url: 'https://github.com/RedHatQE/cinch.git'
branches:
- origin/master
basedir: cinch
builders:
- shell: |
#!/bin/bash -ex
virtualenv ansible.venv && source ansible.venv/bin/activate
pip install --upgrade setuptools pip
pip install 'ansible==2.4.1.0'
export PYTHONUNBUFFERED=1 # Enable real-time output for Ansible
ansible-playbook -i localhost, -c local \
"${WORKSPACE}/cinch/cinch/playbooks/install-rhel7.yml" \
-e delete_venv="${DELETE_VENV}"
deactivate