Skip to content
Snippets Groups Projects
Commit 12ef192d authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

CI: silent zip operations

parent a2f1bd25
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ pipeline { ...@@ -150,7 +150,7 @@ pipeline {
echo "Upstream Job passed SMF_BRANCH to use: ${smfBranch}" echo "Upstream Job passed SMF_BRANCH to use: ${smfBranch}"
} }
sh "git clean -x -d -f > /dev/null 2>&1" sh "git clean -x -d -f > /dev/null 2>&1"
sh "zip -r oai-cn5g-fed.zip .git" sh "zip -r -qq oai-cn5g-fed.zip .git"
sh "mkdir -p archives DS-TEST-RESULTS" sh "mkdir -p archives DS-TEST-RESULTS"
if (new_host_flag) { if (new_host_flag) {
// Prepare the workspace in remote server // Prepare the workspace in remote server
...@@ -161,7 +161,7 @@ pipeline { ...@@ -161,7 +161,7 @@ pipeline {
} }
if (scmEvent) { if (scmEvent) {
sh "git clean -x -d -f > /dev/null 2>&1" sh "git clean -x -d -f > /dev/null 2>&1"
sh "zip -r oai-cn5g-fed.zip .git" sh "zip -r -qq oai-cn5g-fed.zip .git"
sh "mkdir -p archives DS-TEST-RESULTS" sh "mkdir -p archives DS-TEST-RESULTS"
if (new_host_flag) { if (new_host_flag) {
// Prepare the workspace in remote server // Prepare the workspace in remote server
...@@ -265,7 +265,7 @@ def copyTo2ndServer(filename, flag, user, host) { ...@@ -265,7 +265,7 @@ def copyTo2ndServer(filename, flag, user, host) {
} }
sh "scp ${filename} ${user}@${host}:/tmp/CI-CN5G-FED" sh "scp ${filename} ${user}@${host}:/tmp/CI-CN5G-FED"
if ("oai-cn5g-fed.zip".equals(filename)) { if ("oai-cn5g-fed.zip".equals(filename)) {
sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && unzip oai-cn5g-fed.zip && rm oai-cn5g-fed.zip'" sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && unzip -qq oai-cn5g-fed.zip && rm oai-cn5g-fed.zip'"
sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && git checkout -f ${GIT_COMMIT}'" sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && git checkout -f ${GIT_COMMIT}'"
sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && git log -n1'" sh "ssh ${user}@${host} 'cd /tmp/CI-CN5G-FED && git log -n1'"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment