- name: install python-jenkins
sudo: true
- # https://bugs.launchpad.net/python-jenkins/+bug/1500898
- pip: name=python-jenkins version=0.4.7
+ # HORRIBLY BROKEN. This is temporary until this lands upstream:
+ # https://github.com/ceph/python-jenkins/commit/8e018bf7d88dfc308833d195a6ebd29231a8969d
+ # https://review.openstack.org/460363
+ pip: name=git+https://github.com/ceph/python-jenkins@patched#egg=python-jenkins
- name: add github.com host key
sudo: true
- name: install python-jenkins
sudo: true
- # https://bugs.launchpad.net/python-jenkins/+bug/1500898
- pip: name=python-jenkins version=0.4.7
+ # HORRIBLY BROKEN. This is temporary until this lands upstream:
+ # https://github.com/ceph/python-jenkins/commit/8e018bf7d88dfc308833d195a6ebd29231a8969d
+ # https://review.openstack.org/460363
+ pip: name=git+https://github.com/ceph/python-jenkins@patched#egg=python-jenkins
- name: add github.com host key
sudo: true
- hosts: all
sudo: yes
# this will most likely need changed
- user: admin
+ user: admin
gather_facts: false
tasks:
- name: install python-simplejson
- hosts: all
sudo: true
# this will most likely need changed
- user: admin
+ user: admin
vars:
- jenkins_user: 'jenkins-build'
# jenkins API credentials:
# this is also set in the example/hosts-static file
- nodename: '{{ ansible_hostname }}'
- labels: '{{ labels }}'
- - use_jnlp: true
+ - use_jnlp: true
tasks:
- name: create a {{ jenkins_user }} user
- name: install python-jenkins
sudo: true
- # https://bugs.launchpad.net/python-jenkins/+bug/1500898
- pip: name=python-jenkins version=0.4.7
+ # HORRIBLY BROKEN. This is temporary until this lands upstream:
+ # https://github.com/ceph/python-jenkins/commit/8e018bf7d88dfc308833d195a6ebd29231a8969d
+ # https://review.openstack.org/460363
+ pip: name=git+https://github.com/ceph/python-jenkins@patched#egg=python-jenkins
- name: add github.com host key
sudo: true
dest: "/home/{{ jenkins_user }}/slave.jar"
when: use_jnlp
- - name: install the systemd unit file for jenkins
+ - name: install the systemd unit file for jenkins
template:
src: "templates/systemd/jenkins.service.j2"
dest: "/etc/systemd/system/jenkins.service"