mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
pipeline {
|
|
agent { label 'docs' }
|
|
environment {
|
|
PYENV_ROOT = "/usr/local/pyenv"
|
|
PATH = "$PYENV_ROOT/bin:$PATH"
|
|
}
|
|
stages {
|
|
stage('github-pending') {
|
|
steps {
|
|
githubNotify credentialsId: 'test-jenkins-credentials',
|
|
description: 'Testing docs...',
|
|
status: 'PENDING',
|
|
context: "jenkins/pr/docs"
|
|
}
|
|
}
|
|
stage('setup') {
|
|
steps {
|
|
sh 'eval "$(pyenv init -)"; pyenv install 2.7.14 || echo "We already have this python."; pyenv local 2.7.14; pyenv shell 2.7.14'
|
|
sh 'eval "$(pyenv init -)"; pip install sphinx -e .'
|
|
}
|
|
}
|
|
stage('build') {
|
|
steps {
|
|
sh 'eval "$(pyenv init -)"; make -C doc clean html'
|
|
archiveArtifacts artifacts: 'doc/_build/html'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
githubNotify credentialsId: 'test-jenkins-credentials',
|
|
description: 'The docs job has passed',
|
|
status: 'SUCCESS',
|
|
context: "jenkins/pr/docs"
|
|
}
|
|
failure {
|
|
githubNotify credentialsId: 'test-jenkins-credentials',
|
|
description: 'The docs job has failed',
|
|
status: 'FAILURE',
|
|
context: "jenkins/pr/docs"
|
|
}
|
|
}
|
|
}
|