[jenkinscat-docs] master: Added basic support for 'disabled' books. (144cb9b)
immanetize at fedoraproject.org
immanetize at fedoraproject.org
Fri Feb 6 07:40:46 UTC 2015
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit 144cb9bfe66e3ee8f250cf25e97efd4c9df23a12
Author: Pavel Tisnovsky <ptisnovs at redhat.com>
Date: Thu Jan 15 09:50:44 2015 +0100
Added basic support for 'disabled' books.
>---------------------------------------------------------------
ChangeLog | 5 +++++
tools/create_books_clj_file.lua | 25 +++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7a73176..2cb283a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-15 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * tools/create_books_clj_file.lua:
+ Added basic support for 'disabled' books.
+
2014-12-19 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/jenkinscat/server.clj:
diff --git a/tools/create_books_clj_file.lua b/tools/create_books_clj_file.lua
index 031e26e..980f14b 100644
--- a/tools/create_books_clj_file.lua
+++ b/tools/create_books_clj_file.lua
@@ -618,6 +618,31 @@ function readBugDescriptionAndBugTemplate()
readBugTemplate()
end
+function readDisabledJobs()
+ return readInputFileInJsonFormat("disabled_jobs.json")
+end
+
+function readKnownBooks()
+ return readInputFileInJsonFormat("known_books.json")
+end
+
+function printDisabledJobs(disabledJobs)
+ print("List of disabled jobs:")
+ for i, disabledJob in ipairs(disabledJobs) do
+ print(i, disabledJob)
+ end
+end
+
+function printKnownBooks(knownBooks)
+ print("List of known books:")
+ for name, config in pairs(knownBooks) do
+ print("", name)
+ for _, cfgline in ipairs(config) do
+ print("", "", cfgline)
+ end
+ end
+end
+
--
-- Entry point to this tool.
--
More information about the docs-commits
mailing list