Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Handle S3_BUCKET & CDN_URL in release jobs"
[releng/global-jjb.git]
/
shell
/
rtdv3.sh
diff --git
a/shell/rtdv3.sh
b/shell/rtdv3.sh
index
f5be6e6
..
08f98a2
100644
(file)
--- a/
shell/rtdv3.sh
+++ b/
shell/rtdv3.sh
@@
-18,7
+18,7
@@
watchbuild(){
buildid=$(lftools rtd project-build-trigger "$rtdproject" "$1" | jq '.build.id')
result=null
buildid=$(lftools rtd project-build-trigger "$rtdproject" "$1" | jq '.build.id')
result=null
- while [
$result == null
]; do
+ while [
[ "$result" == null ]
]; do
sleep 10
result=$(lftools rtd project-build-details "$rtdproject" "$buildid" | jq '.success')
echo "INFO Current result of running build $result"
sleep 10
result=$(lftools rtd project-build-details "$rtdproject" "$buildid" | jq '.success')
echo "INFO Current result of running build $result"
@@
-41,6
+41,15
@@
fi
#MASTER_RTD_PROJECT as a global jenkins cnt
masterproject="$umbrella-$MASTER_RTD_PROJECT"
#MASTER_RTD_PROJECT as a global jenkins cnt
masterproject="$umbrella-$MASTER_RTD_PROJECT"
+#Exceptions needed for onap, due to importing their old docs.
+if [[ $masterproject == "onap-doc" ]]; then
+ masterproject="onap"
+fi
+if [[ $rtdproject == "onap-doc" ]]; then
+ rtdproject="onap"
+fi
+
+
echo "INFO:"
echo "INFO: Project: $PROJECT"
echo "INFO: Read the Docs Sub Project: https://$rtdproject.readthedocs.io"
echo "INFO:"
echo "INFO: Project: $PROJECT"
echo "INFO: Read the Docs Sub Project: https://$rtdproject.readthedocs.io"