diff --git a/ci-scripts/Jenkinsfile-GitLab-Docker b/ci-scripts/Jenkinsfile-GitLab-Docker index 64b728640bf955f8199d33891c668099806ee830..c476c4c8052c7b18d42caaf7c8df74bf266a0532 100644 --- a/ci-scripts/Jenkinsfile-GitLab-Docker +++ b/ci-scripts/Jenkinsfile-GitLab-Docker @@ -159,6 +159,17 @@ pipeline { myShCmd('mkdir -p archives DS-TEST-RESULTS', new_host_flag, new_host_user, new_host) } } + if (scmEvent) { + sh "git clean -x -d -f > /dev/null 2>&1" + sh "zip -r oai-cn5g-fed.zip .git" + sh "mkdir -p archives DS-TEST-RESULTS" + if (new_host_flag) { + // Prepare the workspace in remote server + copyTo2ndServer('oai-cn5g-fed.zip', new_host_flag, new_host_user, new_host) + myShCmd('git clean -x -d -f > /dev/null 2>&1', new_host_flag, new_host_user, new_host) + myShCmd('mkdir -p archives DS-TEST-RESULTS', new_host_flag, new_host_user, new_host) + } + } } } }