Skip to content

Commit

Permalink
refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
Anda Laakso committed Aug 20, 2019
1 parent cc62628 commit b5b9fb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private Properties createProperties() {
getAlmPassword(),
EncryptionUtils.getSecretKey());
}catch (Exception e){

e.printStackTrace();
}

props.put("almPassword", encAlmPass);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public class SseBuilder extends Builder implements SimpleBuildStep {
private SseModel _sseModel;
private String _fileName;
private static final String HP_TOOLS_LAUNCHER_EXE = "HpToolsLauncher.exe";
private static final String LRANALYSIS_LAUNCHER_EXE = "LRAnalysisLauncher.exe";
private String ResultFilename = "ApiResults.xml";
private String ParamFileName = "ApiRun.txt";

Expand Down Expand Up @@ -186,15 +185,6 @@ public void perform(Run<?, ?> build, FilePath workspace, Launcher launcher,

_sseModel.setAlmServerUrl(getServerUrl(_sseModel.getAlmServerName()));

EnvVars env = null;
try {
env = build.getEnvironment(listener);
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}

VariableResolver<String> varResolver = new VariableResolver.ByMap<String>(build.getEnvironment(listener));
// now merge them into one list
Properties mergedProperties = new Properties();

Expand Down Expand Up @@ -271,7 +261,6 @@ public void perform(Run<?, ?> build, FilePath workspace, Launcher launcher,
}

out.println("Operation was aborted by user.");
//build.setResult(Result.FAILURE);
}
return;
}
Expand Down Expand Up @@ -381,14 +370,6 @@ private boolean containsErrors(List<Testsuite> testsuites) {
return ret;
}

private String getFileName() {

Format formatter = new SimpleDateFormat("ddMMyyyyHHmmssSSS");
String time = formatter.format(new Date());
_fileName = String.format("Results%s.xml", time);
return _fileName;
}

private void stop(SSEBuilderPerformer performer, PrintStream logger) {

try {
Expand Down

0 comments on commit b5b9fb4

Please sign in to comment.