Matthias Sohn | 53a62c5 | 2020-03-03 17:17:08 +0100 | [diff] [blame] | 1 | node("jekyll") { |
| 2 | checkout scm |
| 3 | stage("generate plugins page") { |
| 4 | withEnv(['LC_ALL=C.UTF-8', 'LANG=C.UTF-8']) { |
Luca Milanesio | b45ffa8 | 2020-03-14 23:19:09 +0000 | [diff] [blame] | 5 | withCredentials([usernamePassword(credentialsId: "gerrit-review.googlesource.com", usernameVariable: "username", passwordVariable: "password")]) { |
Matthias Sohn | cb96a00 | 2020-03-14 00:05:58 +0100 | [diff] [blame] | 6 | sh "pipenv install --dev" |
| 7 | sh "pipenv run python tools/plugins.py" |
| 8 | } |
Matthias Sohn | 53a62c5 | 2020-03-03 17:17:08 +0100 | [diff] [blame] | 9 | } |
| 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 Milanesio | b45ffa8 | 2020-03-14 23:19:09 +0000 | [diff] [blame] | 21 | } |