mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-02-26 13:45:31 +00:00
add try block
This commit is contained in:
parent
9aacfdcf3e
commit
e1de9ba205
21
ci/Jenkinsfile
vendored
21
ci/Jenkinsfile
vendored
@ -82,7 +82,22 @@ def copyExample(example=STAGE_NAME) {
|
||||
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}/"
|
||||
|
||||
try {
|
||||
sh "cp ${source}/*.js ${dest}/"
|
||||
} catch (e) {
|
||||
echo "No JS files found."
|
||||
}
|
||||
|
||||
try {
|
||||
sh "[ -e ${source}/*.css] && cp ${source}/*.css ${dest}/"
|
||||
} catch (e) {
|
||||
echo "No CSS files found."
|
||||
}
|
||||
|
||||
try {
|
||||
sh "cp ${source}/*.html ${dest}/"
|
||||
} catch (e) {
|
||||
echo "No HTML files found."
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user