Keep root user ownership of jenkins job and script
authorJunchun Guan <junchunx.guan@intel.com>
Fri, 14 Nov 2014 03:22:35 +0000 (11:22 +0800)
committerJun Wang <junbill.wang@samsung.com>
Tue, 16 Feb 2016 10:00:21 +0000 (18:00 +0800)
Fixes: #2223

Change-Id: I837f3b3275d194f4411b8d87465b60830afd29b4
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
debian/gbs-jenkins-jobs.postinst [deleted file]
debian/gbs-jenkins-scripts.postinst [deleted file]
packaging/gbs.spec

diff --git a/debian/gbs-jenkins-jobs.postinst b/debian/gbs-jenkins-jobs.postinst
deleted file mode 100644 (file)
index 48999c7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-chown -R jenkins. /var/lib/jenkins/jobs
diff --git a/debian/gbs-jenkins-scripts.postinst b/debian/gbs-jenkins-scripts.postinst
deleted file mode 100644 (file)
index 9e40947..0000000
+++ /dev/null
@@ -1 +0,0 @@
-chown -R jenkins. /var/lib/jenkins/jenkins-scripts
index 379e82e..78c671b 100644 (file)
@@ -167,7 +167,7 @@ rm -rf %{buildroot}
 %{python_sitelib}/gitbuildsys/cmd_remotebuild.py*
 
 %files jenkins-jobs
-%defattr(-,jenkins,jenkins,-)
+%defattr(-,root,root,-)
 %dir /var/lib/jenkins
 %dir %{jobs_dir}
 %dir %{jobs_dir}/GBS-local-full-build
@@ -176,7 +176,7 @@ rm -rf %{buildroot}
 %{jobs_dir}/GBS-local-build-with-package-list/config.xml
 
 %files jenkins-scripts
-%defattr(-,jenkins,jenkins,-)
+%defattr(-,root,root,-)
 %dir /var/lib/jenkins
 %dir %{scripts_dir}
 %{scripts_dir}/job_local_full_build