Skip to content

Commit 5f200ff

Browse files
committed
cleanup for manual runs
1 parent dd0c9a9 commit 5f200ff

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ITFirstDomain.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ public static void staticPrepare() throws Exception {
5656
initialize(appPropsFile);
5757

5858
// delete k8s artifacts created if any, delete PV directories
59-
if (System.getenv("WERCKER") == null && System.getenv("JENKINS") == null) {
60-
ExecResult result = cleanup();
61-
if (result.exitValue() != 0) {
62-
throw new RuntimeException(
63-
"FAILED: Command to call cleanup script failed " + result.stderr());
64-
}
65-
logger.info(
66-
"Command to call cleanup script returned " + result.stdout() + "\n" + result.stderr());
59+
if (System.getenv("WERCKER") == null && System.getenv("JENKINS") == null) {
60+
ExecResult result = cleanup();
61+
if (result.exitValue() != 0) {
62+
throw new RuntimeException(
63+
"FAILED: Command to call cleanup script failed " + result.stderr());
64+
}
65+
logger.info(
66+
"Command to call cleanup script returned " + result.stdout() + "\n" + result.stderr());
6767
}
6868

6969
// renew lease at the begining for every test method, leaseId is set only for Wercker

0 commit comments

Comments
 (0)