Skip to content
Permalink
Browse files
[JENKINS-46346] Increased matrix-auth version and fix failure tests
  • Loading branch information
fcojfernandez committed Aug 22, 2017
1 parent c4c5c8d commit db90488ff0774efd62ef257a718b83762e3a1304
Showing with 3 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +2 −0 src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SecureGroovyScriptTest.java
@@ -58,7 +58,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>matrix-auth</artifactId>
<version>1.2</version>
<version>1.6</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -143,6 +143,7 @@ public class SecureGroovyScriptTest {
GlobalMatrixAuthorizationStrategy gmas = new GlobalMatrixAuthorizationStrategy();
gmas.add(Jenkins.READ, "devel");
gmas.add(Jenkins.RUN_SCRIPTS, "devel");
gmas.add(Jenkins.ADMINISTER, "devel");
for (Permission p : Item.PERMISSIONS.getPermissions()) {
gmas.add(p, "devel");
}
@@ -658,6 +659,7 @@ private List<File> getAllUpdatedJarFiles() throws URISyntaxException {
gmas.add(Jenkins.READ, "devel");
gmas.add(Jenkins.READ, "approver");
gmas.add(Jenkins.RUN_SCRIPTS, "approver");
gmas.add(Jenkins.ADMINISTER, "approver");
for (Permission p : Item.PERMISSIONS.getPermissions()) {
gmas.add(p, "devel");
gmas.add(p, "approver");

0 comments on commit db90488

Please sign in to comment.