Skip to content
Snippets Groups Projects
Commit 35784a3f authored by Antoine Lambert's avatar Antoine Lambert
Browse files

templates/swh-pipeline: Add stage to build sphinx documentation

If it exists a sphinx tox environment in the built project, it will
be executed to build sphinx documentation and check for errors.

Related to T3258
parent a97d3fa8
No related branches found
No related tags found
1 merge request!133templates/swh-pipeline: Add stage to build sphinx documentation
agent {
docker {
reuseNode true
image 'swh-jenkins/{{sphinx_docker_image}}'
args '--mount type=volume,src=shared-jenkins-cachedir,dst=/home/jenkins/.cache'
}
}
......@@ -4,6 +4,7 @@
project-type: pipeline
docker_image: tox
cypress_docker_image: cypress
sphinx_docker_image: sphinx
default-tox-environment: py3
sandbox: true
auth-token: 'ph4br1cat0r'
......
......@@ -98,6 +98,23 @@ pipeline {
{%- endif %}
}
}
stage('Sphinx documentation') {
{% filter indent(width=6) %}
{%- include 'includes/agent-docker-sphinx.groovy.j2' -%}
{% endfilter %}
steps {
sh '''
if tox -a | grep -qx sphinx
then
tox -e sphinx
else
echo WARNING: no sphinx environment in tox.ini
fi
'''
}
} // sphinx doc
} // stages
post {
......
......@@ -4,6 +4,7 @@
project-type: pipeline
docker_image: tox
cypress_docker_image: cypress
sphinx_docker_image: sphinx
default-tox-environment: py3
triggers:
- timed: '@daily'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment