node("jekyll") { | |
checkout scm | |
stage("generate plugins page") { | |
withEnv(['LC_ALL=C.UTF-8', 'LANG=C.UTF-8']) { | |
withCredentials([usernamePassword(credentialsId: "gerrit-review.googlesource.com", usernameVariable: "username", passwordVariable: "password")]) { | |
sh "pipenv install --dev" | |
sh "pipenv run python tools/plugins.py" | |
} | |
} | |
} | |
stage("build homepage") { | |
sh "bundle install" | |
sh "bundle exec jekyll build" | |
} | |
stage("deploy homepage") { | |
withCredentials([string(credentialsId: "firebase", variable: "FIREBASE_TOKEN")]) { | |
sh "firebase use default" | |
sh "firebase deploy" | |
} | |
} | |
} |