2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2017 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
12 # Checks for JJB documentation interest points and ensures they are documented.
14 mapfile -t jjb_files < <(find jjb -name "*.yaml")
17 for file in "${jjb_files[@]}"; do
18 mapfile -t docs_interests < <(grep -e '\- builder:' \
19 -e '\- job-template:' \
27 | grep 'name: ' | awk -F': ' '{print $2}' | sort | uniq \
30 for item in "${docs_interests[@]}"; do
31 if ! grep -q "$item" "docs/${file//.yaml/.rst}"; then
33 let "undocumented_count++"
38 if [ $undocumented_count -gt 0 ]; then
39 echo "Number of undocumented items: $undocumented_count"