mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-02-04 19:24:51 +00:00
commit
2d803d667e
24
ci/Jenkinsfile
vendored
24
ci/Jenkinsfile
vendored
@ -78,6 +78,26 @@ 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}"
|
||||
|
||||
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