Browse Source

Sudo for Jenkins when building from master

devel^2
Christian Martin 7 years ago
committed by GitHub
parent
commit
e240ac9189
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      build-scripts/playbook.yml

+ 7
- 1
build-scripts/playbook.yml View File

@ -80,12 +80,18 @@
- name: Update packages
command: dnf update
become: true
- name: Allow Jenkins sudo access
- name: Allow Jenkins sudo access for devel
become: true
lineinfile:
path: /etc/sudoers
line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS-Devel/workspace/tigeros/make-iso.sh'
state: present
- name: Allow Jenkins sudo access for master
become: true
lineinfile:
path: /etc/sudoers
line: 'jenkins ALL=NOPASSWD: /var/lib/jenkins/jobs/TigerOS-Master/workspace/tigeros/make-iso.sh'
state: present
- jenkins_job:
name: TigerOS-Master
state: present

Loading…
Cancel
Save