From 012ef6089b399a35df5d8305bec29e6880ae34fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 17 Jan 2023 11:37:45 +0100 Subject: [PATCH] ci: simplify overcomplicated file copying MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Overcomplicated for no reason. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 084404d..69ef641 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -53,7 +53,6 @@ pipeline { } stage('Publish') { - //when { expression { GIT_BRANCH.endsWith('master') } } steps { script { sh "echo ${SITE_DOMAIN} > build/docs/CNAME" sshagent(credentials: ['status-im-auto-ssh']) { @@ -80,42 +79,6 @@ def buildExample(example=STAGE_NAME) { def copyExample(example=STAGE_NAME) { def source = "examples/${example}" def dest = "build/docs/${example}" - sh "mkdir -p ${dest}" - - try { - sh "cp ${source}/*.js ${dest}/" - } catch (e) { - echo "No JS files found." - } - - try { - sh "cp ${source}/*.css ${dest}/" - } catch (e) { - echo "No CSS files found." - } - - try { - sh "cp ${source}/*.html ${dest}/" - } catch (e) { - echo "No HTML files found." - } - - try { - sh "cp ${source}/*.json ${dest}/" - } catch (e) { - echo "No JSON files found." - } - - try { - sh "cp ${source}/*.png ${dest}/" - } catch (e) { - echo "No PNG files found." - } - - try { - sh "cp ${source}/*.ico ${dest}/" - } catch (e) { - echo "No ICO files found." - } + sh "cp -r ${source}/. ${dest}" }