2024-09-30 17:42:05 +00:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
library 'status-jenkins-lib@v1.9.10'
|
|
|
|
|
2022-09-07 19:19:55 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
label 'linux'
|
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
/* Prevent Jenkins jobs from running forever */
|
|
|
|
timeout(time: 10, unit: 'MINUTES')
|
|
|
|
/* manage how many builds we keep */
|
|
|
|
buildDiscarder(logRotator(
|
|
|
|
numToKeepStr: '20',
|
|
|
|
daysToKeepStr: '30',
|
|
|
|
))
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
GIT_COMMITTER_NAME = 'status-im-auto'
|
|
|
|
GIT_COMMITTER_EMAIL = 'auto@status.im'
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Deps') {
|
2024-09-30 17:42:05 +00:00
|
|
|
steps { script {
|
|
|
|
nix.develop('npm install')
|
|
|
|
} }
|
2022-09-07 19:19:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build') {
|
2024-09-30 17:42:05 +00:00
|
|
|
steps { script {
|
|
|
|
nix.develop('npx quartz build')
|
|
|
|
jenkins.genBuildMetaJSON('public/build.json')
|
|
|
|
} }
|
2022-09-07 19:19:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stage('Publish Prod') {
|
2024-09-30 17:42:05 +00:00
|
|
|
steps { script {
|
2022-09-07 19:19:55 +00:00
|
|
|
sshagent(credentials: ['status-im-auto-ssh']) {
|
2024-09-30 17:42:05 +00:00
|
|
|
nix.develop('ghp-import -c roadmap.logos.co -p public', pure: false)
|
2022-09-07 19:19:55 +00:00
|
|
|
}
|
2024-09-30 17:42:05 +00:00
|
|
|
} }
|
2022-09-07 19:19:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|