OfficeScenarioTests CoopShares+Assets #121
@ -121,8 +121,14 @@ public class TestReport {
|
|||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
private String currentGitBranch() {
|
private String currentGitBranch() {
|
||||||
final var gitRevParse = new SystemProcess("git", "rev-parse", "--abbrev-ref", "HEAD");
|
try {
|
||||||
gitRevParse.execute();
|
final var gitRevParse = new SystemProcess("git", "rev-parse", "--abbrev-ref", "HEAD");
|
||||||
return gitRevParse.getStdOut().split("\\R", 2)[0];
|
gitRevParse.execute();
|
||||||
|
return gitRevParse.getStdOut().split("\\R", 2)[0];
|
||||||
|
} catch (final IOException exc) {
|
||||||
|
// TODO.test: the git call does not work in Jenkins, we have to find out why
|
||||||
|
System.err.println(exc);
|
||||||
|
return "unknown";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user