Author: thomas.diesler(a)jboss.com
Date: 2009-11-22 09:36:25 -0500 (Sun, 22 Nov 2009)
New Revision: 96684
Modified:
projects/jboss-osgi/trunk/hudson/ant.properties.example
projects/jboss-osgi/trunk/hudson/hudson-home/config.xml
projects/jboss-osgi/trunk/hudson/hudson-home/hudson.tasks.Mailer.xml
Log:
Hudson user based security
Modified: projects/jboss-osgi/trunk/hudson/ant.properties.example
===================================================================
--- projects/jboss-osgi/trunk/hudson/ant.properties.example 2009-11-22 14:28:03 UTC (rev
96683)
+++ projects/jboss-osgi/trunk/hudson/ant.properties.example 2009-11-22 14:36:25 UTC (rev
96684)
@@ -8,8 +8,8 @@
jboss.bind.address=127.0.0.1
# JDK settings
-java.home.jdk15=/usr/java/jdk1.5.0_19
-java.home.jdk16=/usr/java/jdk1.6.0_14
+java.home.jdk15=/usr/java/jdk1.5.0_22
+java.home.jdk16=/usr/java/jdk1.6.0_17
# Hudson QA Environment
hudson.username=changeme
@@ -30,6 +30,7 @@
#hudson.jboss510.zip=file:///home/hudson/download/java/jboss/jboss-5.1.0.GA.zip
hudson.mail.recipients=
+hudson.mail.admin=yourname(a)yourdomain.com
hudson.smtp.host=localhost
# Hudson (1.290)
Modified: projects/jboss-osgi/trunk/hudson/hudson-home/config.xml
===================================================================
--- projects/jboss-osgi/trunk/hudson/hudson-home/config.xml 2009-11-22 14:28:03 UTC (rev
96683)
+++ projects/jboss-osgi/trunk/hudson/hudson-home/config.xml 2009-11-22 14:36:25 UTC (rev
96684)
@@ -2,6 +2,27 @@
<hudson>
<numExecutors>2</numExecutors>
<useSecurity>true</useSecurity>
+ <authorizationStrategy
class="hudson.security.GlobalMatrixAuthorizationStrategy">
+ <permission>hudson.model.Hudson.Read:anonymous</permission>
+ <permission>hudson.model.Hudson.Read:@hudson.username@</permission>
+ <permission>hudson.model.Item.Build:@hudson.username@</permission>
+ <permission>hudson.model.Item.Workspace:@hudson.username@</permission>
+ <permission>hudson.model.Item.Delete:@hudson.username@</permission>
+ <permission>hudson.model.View.Configure:@hudson.username@</permission>
+
<permission>hudson.model.Computer.Configure:@hudson.username@</permission>
+ <permission>hudson.model.Computer.Delete:@hudson.username@</permission>
+ <permission>hudson.model.Run.Update:@hudson.username@</permission>
+ <permission>hudson.model.Item.Create:@hudson.username@</permission>
+ <permission>hudson.model.Item.Configure:@hudson.username@</permission>
+ <permission>hudson.model.View.Delete:@hudson.username@</permission>
+ <permission>hudson.model.View.Create:@hudson.username@</permission>
+ <permission>hudson.scm.SCM.Tag:@hudson.username@</permission>
+ <permission>hudson.model.Run.Delete:@hudson.username@</permission>
+
<permission>hudson.model.Hudson.Administer:@hudson.username@</permission>
+ </authorizationStrategy>
+ <securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
+ <disableSignup>false</disableSignup>
+ </securityRealm>
<systemMessage>
<![CDATA[
<h2>JBossOSGi QA Environment</h2>
Modified: projects/jboss-osgi/trunk/hudson/hudson-home/hudson.tasks.Mailer.xml
===================================================================
--- projects/jboss-osgi/trunk/hudson/hudson-home/hudson.tasks.Mailer.xml 2009-11-22
14:28:03 UTC (rev 96683)
+++ projects/jboss-osgi/trunk/hudson/hudson-home/hudson.tasks.Mailer.xml 2009-11-22
14:36:25 UTC (rev 96684)
@@ -2,6 +2,6 @@
<hudson.tasks.Mailer-DescriptorImpl>
<defaultSuffix></defaultSuffix>
<hudsonUrl>http://@hudson.host@:@hudson.http.port@/hudson/</hudsonUrl>
- <adminAddress>thomas.diesler(a)jboss.com</adminAddress>
+ <adminAddress>@hudson.mail.admin(a)</adminAddress>
<smtpHost>@hudson.smtp.host(a)</smtpHost>
</hudson.tasks.Mailer-DescriptorImpl>