File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ public static void staticPrepare() throws Exception {
56
56
initialize (appPropsFile );
57
57
58
58
// delete k8s artifacts created if any, delete PV directories
59
- ExecResult result = cleanup ();
60
- if (result .exitValue () != 0 ) {
61
- throw new RuntimeException (
62
- "FAILED: Command to call cleanup script failed " + 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 ());
63
67
}
64
- logger .info (
65
- "Command to call cleanup script returned " + result .stdout () + "\n " + result .stderr ());
66
68
67
69
// renew lease at the begining for every test method, leaseId is set only for Wercker
68
70
TestUtils .renewK8sClusterLease (getProjectRoot (), getLeaseId ());
You can’t perform that action at this time.
0 commit comments