Merge ~morphis/snappy-hwe-snaps/+git/jenkins-jobs:f/snap-docs-fixes into ~snappy-hwe-team/snappy-hwe-snaps/+git/jenkins-jobs:master

Proposed by Simon Fels
Status: Merged
Approved by: Konrad Zapałowicz
Approved revision: 60702035bfc00c44b405e278f7ddf5a6c123fc05
Merged at revision: 60702035bfc00c44b405e278f7ddf5a6c123fc05
Proposed branch: ~morphis/snappy-hwe-snaps/+git/jenkins-jobs:f/snap-docs-fixes
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/jenkins-jobs:master
Diff against target: 13 lines (+1/-1)
1 file modified
jobs/snap/snap-docs.sh (+1/-1)
Reviewer Review Type Date Requested Status
Konrad Zapałowicz (community) continuous-integration Approve
Review via email: mp+330740@code.launchpad.net

Description of the change

snap: check for metadata.yaml file before invoking documentation-builder

This detect trees we can't build properly.

To post a comment you must log in.
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

ack

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/snap/snap-docs.sh b/jobs/snap/snap-docs.sh
2index 4f7e186..a8c42b3 100644
3--- a/jobs/snap/snap-docs.sh
4+++ b/jobs/snap/snap-docs.sh
5@@ -19,7 +19,7 @@ set -ex
6 . "$WORKSPACE/.build_env"
7
8 git clone -b $SOURCE_GIT_REPO_BRANCH $SOURCE_GIT_REPO $WORKSPACE/src
9-if [ ! -e $WORKSPACE/src/docs ]; then
10+if [ ! -e "$WORKSPACE/src/docs/metadata.yaml" ]; then
11 echo "WARNING: repository does not contain any documentation we can build. Aborting."
12 exit 0
13 fi

Subscribers

People subscribed via source and target branches

to all changes: