File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4242# and if 'true' or 'false' is seen that is coerced to a bool which causes an issue
4343export JBS_S3_SYNC_ENABLED=" \" $JBS_S3_SYNC_ENABLED \" "
4444
45- kubectl delete --ignore-not-found deployments.apps hacbs-jvm-operator -n jvm-build-service
46- kubectl delete --ignore-not-found deployments.apps jvm-build-workspace-artifact-cache
47-
4845function cleanAllArtifacts() {
4946 # Following are created in CI code
5047 kubectl delete --ignore-not-found=true tasks.tekton.dev git-clone
5148 kubectl delete --ignore-not-found=true tasks.tekton.dev maven
5249 kubectl delete --ignore-not-found=true pipelines.tekton.dev sample-component-build
53- kubectl delete --ignore-not-found=true clusterrolebindings.rbac.authorization.k8s.io pipeline-test-jvm-namespace
50+ kubectl delete --ignore-not-found=true clusterrolebindings.rbac.authorization.k8s.io pipeline-${JBS_WORKER_NAMESPACE}
51+ kubectl delete --ignore-not-found=true deployments.apps jvm-build-maven-repo -n ${JBS_WORKER_NAMESPACE}
5452
5553 kubectl delete --ignore-not-found=true artifactbuilds.jvmbuildservice.io --all
5654
@@ -61,6 +59,9 @@ function cleanAllArtifacts() {
6159echo -e " \033[0;32mSetting context to $JBS_WORKER_NAMESPACE with quay image $JBS_QUAY_ORG \033[0m"
6260# Its possible to set context before namespaces have been created.
6361kubectl config set-context --current --namespace=$JBS_WORKER_NAMESPACE
62+ kubectl delete --ignore-not-found deployments.apps hacbs-jvm-operator -n jvm-build-service
63+ kubectl delete --ignore-not-found deployments.apps jvm-build-workspace-artifact-cache
64+
6465
6566if [ " $1 " = " --clean" ]; then
6667 cleanAllArtifacts
You can’t perform that action at this time.
0 commit comments