mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
Add findsecbugs plugin to spotbugs.
And suppress existing warnings. We should clean some of them up, but that's for different PRs.
This commit is contained in:
1 parent
30dbf728ec
commit
c76ee59810
21 files changed
+63
-2
No files matched your search
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
package hudson;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import hudson.Launcher.ProcStarter;
|
||||
import hudson.model.TaskListener;
|
||||
import hudson.remoting.Channel;
|
||||
@@ -215,6 +216,7 @@ public abstract class Proc {
|
||||
* @param err
|
||||
* null to redirect stderr to stdout.
|
||||
*/
|
||||
@SuppressFBWarnings("COMMAND_INJECTION")
|
||||
public LocalProc(String[] cmd,String[] env,InputStream in,OutputStream out,OutputStream err,File workDir) throws IOException {
|
||||
this( calcName(cmd),
|
||||
stderr(environment(new ProcessBuilder(cmd),env).directory(workDir), err==null || err== SELFPUMP_OUTPUT),
|
||||
|
||||
Reference in new issue
Block a user