js-waku/ci/Jenkinsfile.gh-pages

41 lines
721 B
Plaintext

pipeline {
agent { label 'linux' }
options {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GIT_AUTHOR_NAME = 'status-im-auto'
GIT_AUTHOR_EMAIL = 'auto@status.im'
}
stages {
stage('Install Deps') {
steps {
sh 'yarn install'
}
}
stage('Build') {
steps {
sh 'yarn run doc'
}
}
stage('Publish Prod') {
when { expression { GIT_BRANCH.endsWith('docs-build') } }
steps { script {
sshagent(credentials: ['status-im-auto-ssh']) {
sh 'yarn run deploy'
}
} }
}
}
}