- rpmdevtools
- openssl-devel
- libffi-devel
+ - mock
when: ansible_os_family == "RedHat"
- name: install packages from epel (<=7)
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise') or
(ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy')
+ - name: "add {{ jenkins_user }} to mock group"
+ user:
+ name: "{{ jenkins_user }}"
+ groups: mock
+ append: yes
+ when: ansible_os_family == "RedHat"
+
- name: ensure the rpmmacros file exists to fix centos builds
file:
path: "/home/{{ jenkins_user }}/.rpmmacros"
- openssl-devel
- redhat-lsb-core
- iproute
+ - mock
when: ansible_os_family == "RedHat"
- name: install packages from epel
state: directory
owner: "{{ jenkins_user }}"
+ - name: "add {{ jenkins_user }} to mock group"
+ user:
+ name: "{{ jenkins_user }}"
+ groups: mock
+ append: yes
+ when: ansible_os_family == "RedHat"
+
- name: Create .ssh directory
file:
path: "/home/{{ jenkins_user }}/.ssh"
- python-virtualenv
- openssl-devel
- redhat-lsb-core
+ - mock
when: ansible_os_family == "RedHat"
- name: install packages from epel
state: directory
owner: "{{ jenkins_user }}"
+ - name: "add {{ jenkins_user }} to mock group"
+ user:
+ name: "{{ jenkins_user }}"
+ groups: mock
+ append: yes
+ when: ansible_os_family == "RedHat"
+
- name: Create .ssh directory
file:
path: "/home/{{ jenkins_user }}/.ssh"
- rpmdevtools
- openssl-devel
- libffi-devel
+ - mock
when:
- ansible_os_family == "RedHat"
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise') or
(ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy')
+ - name: "add {{ jenkins_user }} to mock group"
+ user:
+ name: "{{ jenkins_user }}"
+ groups: mock
+ append: yes
+ when: ansible_os_family == "RedHat"
+
- name: ensure the rpmmacros file exists to fix centos builds
file: path="/home/{{ jenkins_user }}/.rpmmacros" owner="{{ jenkins_user }}" state=touch
sudo yum -y install epel-release
sudo yum -y install fedpkg mock
-# Add the Jenkins slave UID to the mock group.
-sudo usermod -a -G mock $(whoami)
-newgrp mock
-
# Attempt the build. If it fails, print the mock logs to STDOUT.
make rpm || ( tail -n +1 {root,build}.log && exit 1 )
sudo yum -y install epel-release
sudo yum -y install fedpkg mock
-# Add the Jenkins slave UID to the mock group.
-sudo usermod -a -G mock $(whoami)
-newgrp mock
-
# Attempt the build. If it fails, print the mock logs to STDOUT.
make rpm || ( tail -n +1 {root,build}.log && exit 1 )
sudo yum -y install epel-release
sudo yum -y install fedpkg mock
-# Add the Jenkins slave UID to the mock group.
-sudo usermod -a -G mock $(whoami)
-newgrp mock
-
# Attempt the build. If it fails, print the mock logs to STDOUT.
make rpm || ( tail -n +1 {root,build}.log && exit 1 )