In Jenkins lingo: "exclusive" means that it will only be used on jobs with
label restrictions matching the node (vs. the normal which is 'use this node as
much as possible')
Signed-off-by: Alfredo Deza <adeza@redhat.com>
user: ubuntu
vars:
- jenkins_user: 'jenkins-build'
+ - exclusive: false
tasks:
- name: create a {{ jenkins_user }} user
user: name={{ jenkins_user }} comment="Jenkins Build Slave User" home="/home/{{ jenkins_user }}"
remoteFS: '/home/{{ jenkins_user }}/build'
# XXX this should be configurable, not all nodes should have one executor
executors: 1
+ exclusive: "{{ exclusive }}"
- api_uri: 'https://jenkins.ceph.com'
- nodename: '${nodename}'
- labels: '${labels}'
+ - exclusive: '${exclusive}'
tasks:
- name: create a {{ jenkins_user }} user
user: name={{ jenkins_user }} comment="Jenkins Build Slave User"
remoteFS: '/home/{{ jenkins_user }}/build'
# XXX this should be configurable, not all nodes should have one executor
executors: 1
+ exclusive: "{{ exclusive }}"