blob: c9c15f063627468d815757cb1137af877176cf7e [file] [log] [blame]
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"
}
}
}