use of hudson.model.Computer in project sonar-scanner-jenkins by SonarSource.
the class SonarMaven method buildEnvVars.
@Override
protected void buildEnvVars(EnvVars env, MavenInstallation mi) throws IOException, InterruptedException {
super.buildEnvVars(env, mi);
// Override JDK in case it is set on Sonar publisher
if (jdk != null) {
Computer computer = Computer.currentComputer();
if (computer != null) {
// just in case were not in a build
jdk = jdk.forNode(computer.getNode(), listener);
}
jdk.buildEnvVars(env);
}
}
Aggregations