Source:
void populateConfiguration(ExtendedArgumentListBuilder args, Run<?, ?> build, FilePath workspace, TaskListener listener, EnvVars env, SonarInstallation si) throws IOException, InterruptedException { if (si != null) { args.append("sonar.jdbc.url", si.getDatabaseUrl()); args.appendMasked("sonar.jdbc.username", si.getDatabaseLogin()); args.appendMasked("sonar.jdbc.password", si.getDatabasePassword()); args.append("sonar.host.url", si.getServerUrl()); if (StringUtils.isNotBlank(si.getServerAuthenticationToken())) { args.appendMasked("sonar.login", si.getServerAuthenticationToken()); } else if (StringUtils.isNotBlank(si.getSonarLogin())) { args.appendMasked("sonar.login", si.getSonarLogin()); args.appendMasked("sonar.password", si.getSonarPassword()); } } if (StringUtils.isNotBlank(getProject())) { String projectSettingsFile = env.expand(getProject()); FilePath projectSettingsFilePath = BuilderUtils.getModuleRoot(build, workspace).child(projectSettingsFile); if (!projectSettingsFilePath.exists()) { if (workspace == null) { String msg = "Project workspace is null"; listener.fatalError(msg); throw new AbortException(msg); } FilePath projectSettingsFilePath2 = workspace.child(projectSettingsFile); if (projectSettingsFilePath2.exists()) { projectSettingsFilePath = projectSettingsFilePath2; } else { String msg = "Unable to find Sonar project settings at " + projectSettingsFilePath; listener.fatalError(msg); throw new AbortException(msg); } } args.append("project.settings", projectSettingsFilePath.getRemote()); } Properties p = new Properties(); p.load(new StringReader(env.expand(getProperties()))); loadProperties(args, p); if (!p.containsKey("sonar.projectBaseDir")) { FilePath moduleRoot = BuilderUtils.getModuleRoot(build, workspace); args.append("sonar.projectBaseDir", moduleRoot.getRemote()); } }

Target:
void populateConfiguration(ExtendedArgumentListBuilder args, Run<?, ?> build, FilePath workspace, TaskListener listener, EnvVars env, SonarInstallation si) throws IOException, InterruptedException { if (si != null) { args.append("sonar.jdbc.url", si.getDatabaseUrl()); args.appendMasked("sonar.jdbc.username", si.getDatabaseLogin()); args.appendMasked("sonar.jdbc.password", si.getDatabasePassword()); args.append("sonar.host.url", si.getServerUrl()); if (StringUtils.isNotBlank(si.getServerAuthenticationToken())) { args.appendMasked("sonar.login", si.getServerAuthenticationToken()); } else if (StringUtils.isNotBlank(si.getSonarLogin())) { args.appendMasked("sonar.login", si.getSonarLogin()); args.appendMasked("sonar.password", si.getSonarPassword()); } } if (StringUtils.isNotBlank(getProject())) { String projectSettingsFile = env.expand(getProject()); FilePath projectSettingsFilePath = BuilderUtils.getModuleRoot(build, workspace).child(projectSettingsFile); if (!projectSettingsFilePath.exists()) { if (workspace == null) { String msg = "Project workspace is null"; listener.fatalError(msg); throw new AbortException(msg); } FilePath projectSettingsFilePath2 = workspace.child(projectSettingsFile); if (projectSettingsFilePath2.exists()) { projectSettingsFilePath = projectSettingsFilePath2; } else { String msg = "Unable to find SonarQube project settings at " + projectSettingsFilePath; listener.fatalError(msg); throw new AbortException(msg); } } args.append("project.settings", projectSettingsFilePath.getRemote()); } Properties p = new Properties(); p.load(new StringReader(env.expand(getProperties()))); loadProperties(args, p); if (!p.containsKey("sonar.projectBaseDir")) { FilePath moduleRoot = BuilderUtils.getModuleRoot(build, workspace); args.append("sonar.projectBaseDir", moduleRoot.getRemote()); } }