Prohibit scanning of the console log using a groovy script. Scripts on the master must be started in the sandbox provided by the script security plugin.
@@ -59,6 +59,11 @@ public class GroovyScript extends StaticAnalysisTool {
return getTool().createParser();
}
+ @Override
+ public boolean canScanConsoleLog() {
+ return false; // due to security reasons running a groovy script on master is prohibited
+ }
+
@Override
public StaticAnalysisLabelProvider getLabelProvider() {
return new StaticAnalysisLabelProvider(id, getTool().getName());
@@ -97,8 +102,9 @@ public class GroovyScript extends StaticAnalysisTool {
return options;
}
- public boolean hasParsers() {
- return true;
+ @Override
+ public String getHelp() {
+ return "Note that due to security reasons scanning the console log using a Groovy script is not allowed.";
}
}
}
