rfc/ci/Jenkinsfile
Jakub 58c2ac192e
ci: add Jenkinsfile for site CI builds (#558)
Depends on: https://github.com/status-im/infra-misc/commit/4a953922
Resolves: https://github.com/vacp2p/rfc/issues/557

Signed-off-by: Jakub Sokołowski <jakub@status.im>

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-02 12:51:27 +08:00

39 lines
627 B
Groovy

pipeline {
agent {
dockerfile {
label 'linux'
dir 'ci'
}
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GIT_COMMITTER_NAME = 'status-im-auto'
GIT_COMMITTER_EMAIL = 'auto@status.im'
GIT_SSH_COMMAND = 'ssh -o StrictHostKeyChecking=no'
}
stages {
stage('Build') {
steps {
sh 'hugo'
}
}
stage('Publish Prod') {
steps {
sshagent(credentials: ['status-im-auto-ssh']) {
sh 'ghp-import -p public'
}
}
}
}
}