Revoke sudo permissions before infra jobs
This should actually be a noop -- the sudo file should not be in place yet, but the revoke-sudo builder needs to work regardless of whether the file is in place or not. This tests the latter condition. Next step is to add this to all jobs that run on bare-precise nodes and then enable sudo on bare-precise nodes. Change-Id: Ib6241d39cefc2a4df66e6f1b3f2e9e18bd08db09
This commit is contained in:
parent
200ce362a2
commit
2cb2e29e36
@ -3,6 +3,7 @@
|
||||
node: bare-precise
|
||||
|
||||
builders:
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- shell: "./tools/run-compare-xml.sh openstack-infra config"
|
||||
|
||||
@ -15,6 +16,7 @@
|
||||
node: bare-precise
|
||||
|
||||
builders:
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- shell: |
|
||||
source /usr/local/jenkins/slave_scripts/select-mirror.sh openstack-infra config
|
||||
@ -30,6 +32,7 @@
|
||||
node: bare-precise
|
||||
|
||||
builders:
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- docs:
|
||||
github-org: openstack-infra
|
||||
@ -50,6 +53,7 @@
|
||||
node: bare-precise
|
||||
|
||||
builders:
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- docs:
|
||||
github-org: openstack-infra
|
||||
@ -65,6 +69,7 @@
|
||||
node: bare-precise
|
||||
|
||||
builders:
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- shell: "tools/check_projects_yaml_alphabetized.sh"
|
||||
|
||||
|
@ -3,6 +3,15 @@
|
||||
builders:
|
||||
- shell: "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org http://zuul.openstack.org git://git.openstack.org"
|
||||
|
||||
- builder:
|
||||
name: revoke-sudo
|
||||
builders:
|
||||
- shell: |
|
||||
#!/bin/bash
|
||||
if [ -f /etc/sudoers.d/jenkins-sudo ] ; then
|
||||
sudo rm /etc/sudoers.d/jenkins-sudo
|
||||
fi
|
||||
|
||||
- builder:
|
||||
name: coverage
|
||||
builders:
|
||||
|
Loading…
x
Reference in New Issue
Block a user