Skip a build based on command exit code
Use build.jobs.post_checkout
to execute a Git command and check if there are changes in the docs/
directory.
If there aren’t changes, we return 439 exit code to cancel the build immediately.
Sphinx configuration file used to build this docs (see full file),
1# -*- coding: utf-8 -*-
2
3# Default settings
4project = 'Test Builds'
5extensions = [
6 'sphinx_autorun',
7]
8
9latex_engine = 'xelatex' # allow us to build Unicode chars
10
11
12# Include all your settings here
13html_theme = 'sphinx_rtd_theme'
14
15
16
17
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2022, 11, 14, 14, 39, 28, 255685)