This is an automated email from the ASF dual-hosted git repository.

yichi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 37bca02  [BEAM-12898] Minor fix to Kubernetes.groovy postBuildScript.
     new 9876fe4  Merge pull request #15565 from y1chi/beam-12898-fix
37bca02 is described below

commit 37bca0230e1adee48316c9598ab9fb337e7d55f5
Author: Yichi Zhang <[email protected]>
AuthorDate: Thu Sep 23 09:37:20 2021 -0700

    [BEAM-12898] Minor fix to Kubernetes.groovy postBuildScript.
---
 .test-infra/jenkins/Kubernetes.groovy | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.test-infra/jenkins/Kubernetes.groovy 
b/.test-infra/jenkins/Kubernetes.groovy
index b476a21..b703929 100644
--- a/.test-infra/jenkins/Kubernetes.groovy
+++ b/.test-infra/jenkins/Kubernetes.groovy
@@ -92,9 +92,13 @@ class Kubernetes {
             ])
             buildSteps {
               if (!namespace.isEmpty()) {
-                shell("${KUBERNETES_SCRIPT} deleteNamespace ${namespace}")
+                shell {
+                  command("${KUBERNETES_SCRIPT} deleteNamespace ${namespace}")
+                }
+              }
+              shell {
+                command("rm ${kubeconfigLocation}")
               }
-              shell("rm ${kubeconfigLocation}")
             }
           }
         }

Reply via email to