From 26c9c399627bd50cf89c5cc93871919e675e3813 Mon Sep 17 00:00:00 2001
From: Jan-Tarek Butt <tarek@ring0.de>
Date: Mon, 2 Oct 2023 01:34:38 +0200
Subject: [PATCH] .gitlab-ci.yml: revert stop review changes and add comment.

Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6812835..02dd177 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,8 +61,8 @@ stop_review:
     - chmod 700 ~/.ssh
     - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
   script:
-    - ssh ffnw.de@ffnw.de "[[ -d /var/www/ffnw.de/pre/$CI_ENVIRONMENT_SLUG ]] && rm -rf /var/www/ffnw.de/pre/$CI_ENVIRONMENT_SLUG"
-    - ssh ffnw.de@ffnw.de 'whoami'
+    # remove script will be triggert on server side.
+    - ssh ffnw.de@ffnw.de "$CI_ENVIRONMENT_SLUG"
   variables:
     GIT_STRATEGY: none
   when: delayed
-- 
GitLab