blob: c9c15f063627468d815757cb1137af877176cf7e [file] [log] [blame]
Matthias Sohn53a62c52020-03-03 17:17:08 +01001node("jekyll") {
2 checkout scm
3 stage("generate plugins page") {
4 withEnv(['LC_ALL=C.UTF-8', 'LANG=C.UTF-8']) {
Luca Milanesiob45ffa82020-03-14 23:19:09 +00005 withCredentials([usernamePassword(credentialsId: "gerrit-review.googlesource.com", usernameVariable: "username", passwordVariable: "password")]) {
Matthias Sohncb96a002020-03-14 00:05:58 +01006 sh "pipenv install --dev"
7 sh "pipenv run python tools/plugins.py"
8 }
Matthias Sohn53a62c52020-03-03 17:17:08 +01009 }
10 }
11 stage("build homepage") {
12 sh "bundle install"
13 sh "bundle exec jekyll build"
14 }
15 stage("deploy homepage") {
16 withCredentials([string(credentialsId: "firebase", variable: "FIREBASE_TOKEN")]) {
17 sh "firebase use default"
18 sh "firebase deploy"
19 }
20 }
Luca Milanesiob45ffa82020-03-14 23:19:09 +000021}