blob: b5b5035303d34c080741cccd1976c5693067c336 [file] [log] [blame] [edit]
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 --sleep 30"
}
}
}
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"
}
}
}