Skip to contentSkip to conversation

Azure: Add missing "set -e" to docs job

PATCH In review Tom Rini 1 participant 2 messages Feb 7, 2025 – Feb 10, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Azure: Add missing "set -e" to docs job

Without setting the shell flag to exit immediately when a command exists with a non-zero status we can have the situation where the htmldocs target fails with an error but the job will succeed due to infodocs passing and being the last build target.

---
 .azure-pipelines.yml | 1 +
 1 file changed, 1 insertion(+)
.azure-pipelines.yml +1 -0
index db471e67107c..bd197cd6e66e 100644
@@ -89,6 +89,7 @@ stages:
       options: $(container_option)
     steps:
       - script: |
+          set -e
           virtualenv -p /usr/bin/python3 /tmp/venvhtml
           . /tmp/venvhtml/bin/activate
           pip install -r doc/sphinx/requirements.txt
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 6 lines · Tom Rini

Without setting the shell flag to exit immediately when a command exists with a non-zero status we can have the situation where the htmldocs target fails with an error but the job will succeed due to infodocs passing and being the last build target.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom