mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
Merge branch 'SECURITY-144' into SECURITY-144-rc
Conflicts: core/src/main/java/hudson/EnvVars.java core/src/main/java/hudson/FilePath.java core/src/main/java/hudson/cli/ClientAuthenticationCache.java core/src/main/java/hudson/markup/MyspacePolicy.java core/src/main/java/hudson/model/Computer.java core/src/main/java/hudson/node_monitors/DiskSpaceMonitorDescriptor.java core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java core/src/main/java/hudson/security/AbstractPasswordBasedSecurityRealm.java core/src/main/java/hudson/slaves/Channels.java core/src/main/java/hudson/slaves/SlaveComputer.java core/src/main/java/hudson/tasks/Fingerprinter.java core/src/main/java/hudson/tasks/Shell.java core/src/main/java/hudson/tasks/junit/JUnitParser.java core/src/main/java/hudson/tasks/test/DefaultTestResultParserImpl.java core/src/main/java/hudson/util/ProcessTree.java core/src/main/java/hudson/util/RemotingDiagnostics.java core/src/main/java/jenkins/model/Jenkins.java core/src/test/java/hudson/LauncherTest.java pom.xml test/src/test/java/hudson/tasks/junit/CaseResultTest.java
This commit is contained in:
commit
89cbfc4639
60 files changed
+1200
-301
No files matched your search
@@ -29,6 +29,7 @@ import hudson.model.TaskListener;
|
||||
import hudson.remoting.Callable;
|
||||
import hudson.util.ProcessTree;
|
||||
import hudson.util.StreamTaskListener;
|
||||
import jenkins.security.MasterToSlaveCallable;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.jvnet.hudson.test.Bug;
|
||||
|
||||
@@ -73,7 +74,7 @@ public class LauncherTest extends ChannelTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
private static final Callable<Object,RuntimeException> NOOP = new Callable<Object,RuntimeException>() {
|
||||
private static final Callable<Object,RuntimeException> NOOP = new MasterToSlaveCallable<Object,RuntimeException>() {
|
||||
public Object call() throws RuntimeException {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package hudson.os;
|
||||
|
||||
import hudson.remoting.Callable;
|
||||
import hudson.util.StreamTaskListener;
|
||||
import jenkins.security.MasterToSlaveCallable;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
|
||||
@@ -10,7 +11,7 @@ import java.io.FileOutputStream;
|
||||
*/
|
||||
public class SUTester {
|
||||
public static void main(String[] args) throws Throwable {
|
||||
SU.execute(StreamTaskListener.fromStdout(),"kohsuke","bogus",new Callable<Object, Throwable>() {
|
||||
SU.execute(StreamTaskListener.fromStdout(),"kohsuke","bogus",new MasterToSlaveCallable<Object, Throwable>() {
|
||||
public Object call() throws Throwable {
|
||||
System.out.println("Touching /tmp/x");
|
||||
new FileOutputStream("/tmp/x").close();
|
||||
|
||||
@@ -5,6 +5,7 @@ import hudson.remoting.Callable;
|
||||
import hudson.remoting.VirtualChannel;
|
||||
import hudson.util.ProcessTree.OSProcess;
|
||||
import hudson.util.ProcessTree.ProcessCallable;
|
||||
import jenkins.security.MasterToSlaveCallable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
@@ -39,7 +40,7 @@ public class ProcessTreeTest extends ChannelTestCase {
|
||||
t.p.act(new ProcessCallableImpl());
|
||||
}
|
||||
|
||||
private static class MyCallable implements Callable<Tag, IOException>, Serializable {
|
||||
private static class MyCallable extends MasterToSlaveCallable<Tag, IOException> implements Serializable {
|
||||
public Tag call() throws IOException {
|
||||
Tag t = new Tag();
|
||||
t.tree = ProcessTree.get();
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.io.PrintWriter;
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class ReopenableRotatingFileOutputStreamTest extends TestCase {
|
||||
public void testRotation() throws IOException {
|
||||
public void testRotation() throws IOException, InterruptedException {
|
||||
File base = File.createTempFile("test", "log");
|
||||
ReopenableRotatingFileOutputStream os = new ReopenableRotatingFileOutputStream(base,3);
|
||||
PrintWriter w = new PrintWriter(os,true);
|
||||
|
||||
Reference in new issue
Block a user