mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-01-24 22:09:45 +00:00
split cp command and test if files exist before copying them
This commit is contained in:
parent
cfe6462e06
commit
9aacfdcf3e
9
ci/Jenkinsfile
vendored
9
ci/Jenkinsfile
vendored
@ -78,6 +78,11 @@ def buildExample(example=STAGE_NAME) {
|
||||
}
|
||||
|
||||
def copyExample(example=STAGE_NAME) {
|
||||
sh "mkdir -p build/docs/${example}"
|
||||
sh "cp examples/${example}/*.\\(js|css|html\\) build/docs/${example}/"
|
||||
def source = "examples/${example}"
|
||||
def dest = "build/docs/${example}"
|
||||
|
||||
sh "mkdir -p ${dest}"
|
||||
sh "[ -e ${source}/*.js] && cp ${source}/*.js ${dest}/"
|
||||
sh "[ -e ${source}/*.css] && cp ${source}/*.css ${dest}/"
|
||||
sh "[ -e ${source}/*.html] && cp ${source}/*.html ${dest}/"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user