提交 b7027563 编写于 作者: K Kohsuke Kawaguchi

how Jesse finds all the typos, I have no idea

上级 48be9686
......@@ -429,15 +429,15 @@ public class QueueTest extends HudsonTestCase {
assertSame(b1.getBuiltOn(),b2.getBuiltOn());
// ACL that allow anyone to do anything except Alice can't build.
final SparseACL alicCantBuild = new SparseACL(null);
alicCantBuild.add(new PrincipalSid(alice), AbstractProject.BUILD, false);
alicCantBuild.add(new PrincipalSid("anonymous"), Jenkins.ADMINISTER, true);
final SparseACL aliceCantBuild = new SparseACL(null);
aliceCantBuild.add(new PrincipalSid(alice), AbstractProject.BUILD, false);
aliceCantBuild.add(new PrincipalSid("anonymous"), Jenkins.ADMINISTER, true);
GlobalMatrixAuthorizationStrategy auth = new GlobalMatrixAuthorizationStrategy() {
@Override
public ACL getACL(Node node) {
if (node==b1.getBuiltOn())
return alicCantBuild;
return aliceCantBuild;
return super.getACL(node);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册