[networking-guide] 21: Bump Rev Hist to 2-1 (880341d)
by stephenw
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : 21
>---------------------------------------------------------------
commit 880341daaa79b54e5ab706c05f672ae7300295e2
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Fri Feb 6 08:54:25 2015 +0100
Bump Rev Hist to 2-1
>---------------------------------------------------------------
en-US/Revision_History.xml | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/en-US/Revision_History.xml b/en-US/Revision_History.xml
index 384d20f..c708809 100644
--- a/en-US/Revision_History.xml
+++ b/en-US/Revision_History.xml
@@ -9,6 +9,23 @@
<revhistory>
<revision>
+ <revnumber>2-1</revnumber>
+ <date>Fri Feb 6 2015</date>
+ <author>
+ <firstname>Stephen</firstname>
+ <surname>Wadeley</surname>
+ <email>swadeley(a)redhat.com</email>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>
+ Added "VLAN over a Bond" to the bonding chapter.
+ </member>
+ </simplelist>
+ </revdescription>
+ </revision>
+
+ <revision>
<revnumber>2-0</revnumber>
<date>Tues Jan 6 2015</date>
<author>
9 years, 4 months
[networking-guide] 21: typo (2c8c67b)
by stephenw
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : 21
>---------------------------------------------------------------
commit 2c8c67b8186175eb650ebd6aa5907ad08073d824
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Wed Jan 7 21:34:27 2015 +0100
typo
>---------------------------------------------------------------
en-US/Configure_Network_Bonding.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/en-US/Configure_Network_Bonding.xml b/en-US/Configure_Network_Bonding.xml
index 42346ce..3ef3e8e 100644
--- a/en-US/Configure_Network_Bonding.xml
+++ b/en-US/Configure_Network_Bonding.xml
@@ -18,7 +18,7 @@
<note>
<para>
- The active-backup, balance-tlb and balance-alb modes do not require any specific configuration of the switch. Other bonding modes require configuring the switch to aggregate the links. For example, a Cisco switch requires EtherChannel for Modes 0, 2, and 3, but for Mode 4 LACP and EtherChannel are required. See the documentation supplied with your switch and see <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt">https://www.kernel.org/doc/Documentation/networking/bonding.txt</ulink><!--the <filename>bonding.txt</filename> file in the <package>kernel-doc</package> package (see <xref linkend="sec-Configure_Network_Bonding-docs-installable"/>)-->
+ The active-backup, balance-tlb and balance-alb modes do not require any specific configuration of the switch. Other bonding modes require configuring the switch to aggregate the links. For example, a Cisco switch requires EtherChannel for Modes 0, 2, and 3, but for Mode 4 LACP and EtherChannel are required. See the documentation supplied with your switch and see <ulink url="https://www.kernel.org/doc/Documentation/networking/bonding.txt">https://www.kernel.org/doc/Documentation/networking/bonding.txt</ulink>.<!--the <filename>bonding.txt</filename> file in the <package>kernel-doc</package> package (see <xref linkend="sec-Configure_Network_Bonding-docs-installable"/>)-->
</para>
</note>
9 years, 4 months
[networking-guide] master: Bump Rev Hist to 2-1 (a6f4a71)
by stephenw
Repository : http://git.fedorahosted.org/cgit/docs/networking-guide.git
On branch : master
>---------------------------------------------------------------
commit a6f4a713e3573411f139186779873ac52e155408
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Fri Feb 6 08:54:25 2015 +0100
Bump Rev Hist to 2-1
>---------------------------------------------------------------
en-US/Revision_History.xml | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/en-US/Revision_History.xml b/en-US/Revision_History.xml
index 384d20f..c708809 100644
--- a/en-US/Revision_History.xml
+++ b/en-US/Revision_History.xml
@@ -9,6 +9,23 @@
<revhistory>
<revision>
+ <revnumber>2-1</revnumber>
+ <date>Fri Feb 6 2015</date>
+ <author>
+ <firstname>Stephen</firstname>
+ <surname>Wadeley</surname>
+ <email>swadeley(a)redhat.com</email>
+ </author>
+ <revdescription>
+ <simplelist>
+ <member>
+ Added "VLAN over a Bond" to the bonding chapter.
+ </member>
+ </simplelist>
+ </revdescription>
+ </revision>
+
+ <revision>
<revnumber>2-0</revnumber>
<date>Tues Jan 6 2015</date>
<author>
9 years, 4 months
[jenkinscat-docs] master: Added comments and licence into data_fetcher module. (84d1fb3)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit 84d1fb3f2577100dfe6d1519f2d78e50fba6afad
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Thu Feb 5 10:58:18 2015 +0100
Added comments and licence into data_fetcher module.
>---------------------------------------------------------------
ChangeLog | 5 +++++
src/jenkinscat/data_fetcher.clj | 31 +++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c9324de..3b36cd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-02-05 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+ * src/jenkinscat/data_fetcher.clj:
+ Added comments and licence into data_fetcher module.
+
+2015-02-05 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
* src/jenkinscat/exec.clj:
* src/jenkinscat/file_handlers.clj:
* src/jenkinscat/server.clj:
diff --git a/src/jenkinscat/data_fetcher.clj b/src/jenkinscat/data_fetcher.clj
index d9ea122..079ac2c 100644
--- a/src/jenkinscat/data_fetcher.clj
+++ b/src/jenkinscat/data_fetcher.clj
@@ -1,3 +1,34 @@
+;;;
+;;; Fetcher that regularly updates data file used by Jenkinscat front page.
+;;;
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
+;;; All rights reserved.
+;;;
+;;; Redistribution and use in source and binary forms, with or without
+;;; modification, are permitted provided that the following conditions are met:
+;;; * Redistributions of source code must retain the above copyright
+;;; notice, this list of conditions and the following disclaimer.
+;;; * Redistributions in binary form must reproduce the above copyright
+;;; notice, this list of conditions and the following disclaimer in the
+;;; documentation and/or other materials provided with the distribution.
+;;; * Neither the name of the Red Hat nor the
+;;; names of its contributors may be used to endorse or promote products
+;;; derived from this software without specific prior written permission.
+;;;
+;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+;;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+;;; DISCLAIMED. IN NO EVENT SHALL Pavel Tisnovsky BE LIABLE FOR ANY
+;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+;;; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+;;; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+;;; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+;;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+;;;
+
+
+
(ns jenkinscat.data-fetcher)
(require '[jenkinscat.config :as config])
9 years, 4 months
[jenkinscat-docs] master: Updated (c) year(s) in exec.clj, file_handlers.clj and server.clj. (64dd8fb)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit 64dd8fb355d62b964068f881477576a792b1cfd5
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Thu Feb 5 10:56:37 2015 +0100
Updated (c) year(s) in exec.clj, file_handlers.clj and server.clj.
>---------------------------------------------------------------
ChangeLog | 7 +++++++
src/jenkinscat/exec.clj | 2 +-
src/jenkinscat/file_handlers.clj | 2 +-
src/jenkinscat/server.clj | 2 +-
4 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ec84efb..c9324de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-02-05 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+ * src/jenkinscat/exec.clj:
+ * src/jenkinscat/file_handlers.clj:
+ * src/jenkinscat/server.clj:
+ Updated (c) year(s).
+
+2015-02-05 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
* src/jenkinscat/renderers/add_book_step_1_error_pages.clj:
* src/jenkinscat/renderers/add_book_step_1_page.clj:
* src/jenkinscat/renderers/add_book_step_2_error_pages.clj:
diff --git a/src/jenkinscat/exec.clj b/src/jenkinscat/exec.clj
index f0c279f..aa70c28 100644
--- a/src/jenkinscat/exec.clj
+++ b/src/jenkinscat/exec.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/file_handlers.clj b/src/jenkinscat/file_handlers.clj
index b7f7554..32a1f7c 100644
--- a/src/jenkinscat/file_handlers.clj
+++ b/src/jenkinscat/file_handlers.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/server.clj b/src/jenkinscat/server.clj
index 872c9c1..fc26ce9 100644
--- a/src/jenkinscat/server.clj
+++ b/src/jenkinscat/server.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
9 years, 4 months
[jenkinscat-docs] master: Updated (c) year(s). (7f4952a)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit 7f4952a13a3c66c0183a14ff5954bfbca12694a4
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Thu Feb 5 10:55:13 2015 +0100
Updated (c) year(s).
>---------------------------------------------------------------
ChangeLog | 15 +++++++++++++++
.../renderers/add_book_step_1_error_pages.clj | 2 +-
src/jenkinscat/renderers/add_book_step_1_page.clj | 2 +-
.../renderers/add_book_step_2_error_pages.clj | 2 +-
src/jenkinscat/renderers/add_book_step_2_page.clj | 2 +-
src/jenkinscat/renderers/add_book_step_3_page.clj | 2 +-
src/jenkinscat/renderers/build_page.clj | 2 +-
src/jenkinscat/renderers/configuration_page.clj | 2 +-
src/jenkinscat/renderers/error_page.clj | 2 +-
src/jenkinscat/renderers/navigation_bar.clj | 2 +-
src/jenkinscat/renderers/page_header.clj | 2 +-
src/jenkinscat/renderers/statistics_page.clj | 2 +-
12 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0fda2b9..ec84efb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2015-02-05 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
+ * src/jenkinscat/renderers/add_book_step_1_error_pages.clj:
+ * src/jenkinscat/renderers/add_book_step_1_page.clj:
+ * src/jenkinscat/renderers/add_book_step_2_error_pages.clj:
+ * src/jenkinscat/renderers/add_book_step_2_page.clj:
+ * src/jenkinscat/renderers/add_book_step_3_page.clj:
+ * src/jenkinscat/renderers/build_page.clj:
+ * src/jenkinscat/renderers/configuration_page.clj:
+ * src/jenkinscat/renderers/error_page.clj:
+ * src/jenkinscat/renderers/navigation_bar.clj:
+ * src/jenkinscat/renderers/page_header.clj:
+ * src/jenkinscat/renderers/statistics_page.clj:
+ Updated (c) year(s).
+
2015-02-04 Pavel Tisnovsky <ptisnovs(a)redhat.com>
* src/jenkinscat/core.clj:
diff --git a/src/jenkinscat/renderers/add_book_step_1_error_pages.clj b/src/jenkinscat/renderers/add_book_step_1_error_pages.clj
index 49dbcbb..50a8b97 100644
--- a/src/jenkinscat/renderers/add_book_step_1_error_pages.clj
+++ b/src/jenkinscat/renderers/add_book_step_1_error_pages.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/add_book_step_1_page.clj b/src/jenkinscat/renderers/add_book_step_1_page.clj
index 084036a..9f465f6 100644
--- a/src/jenkinscat/renderers/add_book_step_1_page.clj
+++ b/src/jenkinscat/renderers/add_book_step_1_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/add_book_step_2_error_pages.clj b/src/jenkinscat/renderers/add_book_step_2_error_pages.clj
index 8a88aad..4f6755b 100644
--- a/src/jenkinscat/renderers/add_book_step_2_error_pages.clj
+++ b/src/jenkinscat/renderers/add_book_step_2_error_pages.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/add_book_step_2_page.clj b/src/jenkinscat/renderers/add_book_step_2_page.clj
index 262719f..a762b88 100644
--- a/src/jenkinscat/renderers/add_book_step_2_page.clj
+++ b/src/jenkinscat/renderers/add_book_step_2_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/add_book_step_3_page.clj b/src/jenkinscat/renderers/add_book_step_3_page.clj
index 2d1f413..5b399ca 100644
--- a/src/jenkinscat/renderers/add_book_step_3_page.clj
+++ b/src/jenkinscat/renderers/add_book_step_3_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/build_page.clj b/src/jenkinscat/renderers/build_page.clj
index d1f94fb..023aa60 100644
--- a/src/jenkinscat/renderers/build_page.clj
+++ b/src/jenkinscat/renderers/build_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/configuration_page.clj b/src/jenkinscat/renderers/configuration_page.clj
index a2b9fa8..e76a49e 100644
--- a/src/jenkinscat/renderers/configuration_page.clj
+++ b/src/jenkinscat/renderers/configuration_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/error_page.clj b/src/jenkinscat/renderers/error_page.clj
index d0821b9..2c74ca6 100644
--- a/src/jenkinscat/renderers/error_page.clj
+++ b/src/jenkinscat/renderers/error_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/navigation_bar.clj b/src/jenkinscat/renderers/navigation_bar.clj
index 9ee1638..28efd6e 100644
--- a/src/jenkinscat/renderers/navigation_bar.clj
+++ b/src/jenkinscat/renderers/navigation_bar.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/page_header.clj b/src/jenkinscat/renderers/page_header.clj
index dcfd047..6603ede 100644
--- a/src/jenkinscat/renderers/page_header.clj
+++ b/src/jenkinscat/renderers/page_header.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
diff --git a/src/jenkinscat/renderers/statistics_page.clj b/src/jenkinscat/renderers/statistics_page.clj
index 7066066..c5f1cdd 100644
--- a/src/jenkinscat/renderers/statistics_page.clj
+++ b/src/jenkinscat/renderers/statistics_page.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
9 years, 4 months
[jenkinscat-docs] master: 1st version of data fetcher. (deef98b)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit deef98bc679a8d3cece0809a7b59fd0fe995334b
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Wed Feb 4 11:21:13 2015 +0100
1st version of data fetcher.
>---------------------------------------------------------------
ChangeLog | 6 +++++
src/jenkinscat/core.clj | 4 ++-
src/jenkinscat/data_fetcher.clj | 40 +++++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 58453dd..0fda2b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2015-02-04 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+ * src/jenkinscat/core.clj:
+ * src/jenkinscat/data_fetcher.clj:
+ 1st version of data fetcher.
+
+2015-02-04 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
* src/jenkinscat/config.clj:
Added new configuration option.
* src/jenkinscat/fileutils.clj:
diff --git a/src/jenkinscat/core.clj b/src/jenkinscat/core.clj
index ce821e5..c1fba07 100644
--- a/src/jenkinscat/core.clj
+++ b/src/jenkinscat/core.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
@@ -41,6 +41,7 @@
(require '[jenkinscat.server :as server])
(require '[jenkinscat.books :as books])
+(require '[jenkinscat.data-fetcher :as data-fetcher])
(def app
"Definition of a Ring-based application behaviour."
@@ -67,6 +68,7 @@
(let [all-options (cli/parse-opts args cli-options)
options (all-options :options)
port (options :port)]
+ (.start (Thread. data-fetcher/run-fetcher))
(start-server port)))
; finito
diff --git a/src/jenkinscat/data_fetcher.clj b/src/jenkinscat/data_fetcher.clj
new file mode 100644
index 0000000..d9ea122
--- /dev/null
+++ b/src/jenkinscat/data_fetcher.clj
@@ -0,0 +1,40 @@
+(ns jenkinscat.data-fetcher)
+
+(require '[jenkinscat.config :as config])
+(require '[jenkinscat.server :as server])
+
+
+(defn minutes-to-seconds
+ "Converts minutes to seconds."
+ [minutes]
+ (* minutes 60))
+
+(defn seconds-to-ms
+ "Converts seconds to milliseconds."
+ [seconds]
+ (* seconds 1000))
+
+(defn compute-sleep-amount
+ [minutes]
+ (-> minutes
+ minutes-to-seconds
+ seconds-to-ms))
+
+(defn run-fetcher-in-a-loop
+ "Run the fetcher periodically. The sleep amount should containg time delay
+ in minutes."
+ [sleep-amount devel-version]
+ (let [ms-to-sleep (compute-sleep-amount sleep-amount)]
+ (while true
+ (do
+ (println "Generating data2.json")
+ (server/json-data-exporter)
+ (println "Done, sleeping for" sleep-amount " minutes")
+ (Thread/sleep ms-to-sleep)))))
+
+(defn run-fetcher
+ "Run the endless fetcher loop."
+ []
+ (println "Fetcher started in its own thread")
+ (run-fetcher-in-a-loop config/fetcher-sleep-amount config/devel-version))
+
9 years, 4 months
[jenkinscat-docs] master: Added function to move and rename file(s). Added new configuration option. (dbaad80)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit dbaad80c75a3ff0dba303b6f5242c9fb021766e5
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Wed Feb 4 11:19:21 2015 +0100
Added function to move and rename file(s). Added new configuration option.
>---------------------------------------------------------------
ChangeLog | 7 +++++++
src/jenkinscat/config.clj | 6 +++++-
src/jenkinscat/fileutils.clj | 9 ++++++++-
3 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0ac0db8..58453dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-04 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
+ * src/jenkinscat/config.clj:
+ Added new configuration option.
+ * src/jenkinscat/fileutils.clj:
+ Added function to move and rename file(s).
+
2015-02-03 Pavel Tisnovsky <ptisnovs(a)redhat.com>
* src/jenkinscat/books.clj:
diff --git a/src/jenkinscat/config.clj b/src/jenkinscat/config.clj
index eced421..cf826c7 100644
--- a/src/jenkinscat/config.clj
+++ b/src/jenkinscat/config.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
@@ -59,3 +59,7 @@
"Whether devel mode should be on."
true)
+(def fetcher-sleep-amount
+ "Amount of sleep for fetcher. The sleep amount is specified in minutes."
+ 2)
+
diff --git a/src/jenkinscat/fileutils.clj b/src/jenkinscat/fileutils.clj
index f3abef7..52ab7ad 100644
--- a/src/jenkinscat/fileutils.clj
+++ b/src/jenkinscat/fileutils.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
@@ -84,3 +84,10 @@
temp-dir (new java.io.File basedir-name base-name)]
(.getAbsolutePath temp-dir)))
+(defn mv-file
+ "Move or rename one file. On the same filesystem the rename should be atomic."
+ [filename1 filename2]
+ (let [file1 (new java.io.File filename1)
+ file2 (new java.io.File filename2)]
+ (.renameTo file1 file2)))
+
9 years, 4 months
[jenkinscat-docs] master: Small refactoring. (514e5ed)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit 514e5ed618c92b5a8f27e05a36f79d948f460e28
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Tue Feb 3 11:34:50 2015 +0100
Small refactoring.
>---------------------------------------------------------------
ChangeLog | 5 +++++
src/jenkinscat/books.clj | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6190efe..0ac0db8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-02-03 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+ * src/jenkinscat/books.clj:
+ Small refactoring.
+
+2015-02-03 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
* src/jenkinscat/renderers/configuration_page.clj:
* src/jenkinscat/server.clj:
Support for displaying ssh settings on the configuration page.
diff --git a/src/jenkinscat/books.clj b/src/jenkinscat/books.clj
index 21fa655..9234e55 100644
--- a/src/jenkinscat/books.clj
+++ b/src/jenkinscat/books.clj
@@ -1,7 +1,7 @@
;;;
;;; Jenkinscat HTTP server that handles all requests send from clients/browsers.
;;;
-;;; Copyright (c) 2014 Pavel Tisnovsky, Red Hat
+;;; Copyright (c) 2014, 2015 Pavel Tisnovsky, Red Hat
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
@@ -33,10 +33,14 @@
(require '[clojure.edn :as edn])
+(defn read-books-from-books-clj
+ []
+ (edn/read-string (slurp "books.clj")))
+
(defn read-books
[]
(println "*** Reading all books... ***")
(def books
- (edn/read-string (slurp "books.clj")))
+ (read-books-from-books-clj))
(println "Read " (count books) " books"))
9 years, 4 months
[jenkinscat-docs] master: Support for displaying ssh settings on the configuration page. (aba7345)
by Pete Travis
Repository : http://git.fedorahosted.org/cgit/jenkinscat-docs.git
On branch : master
>---------------------------------------------------------------
commit aba7345e8c387cd7b0388f9010736b662847fbc5
Author: Pavel Tisnovsky <ptisnovs(a)redhat.com>
Date: Tue Feb 3 11:33:20 2015 +0100
Support for displaying ssh settings on the configuration page.
>---------------------------------------------------------------
ChangeLog | 6 ++++++
src/jenkinscat/renderers/configuration_page.clj | 4 +++-
src/jenkinscat/server.clj | 8 ++++++++
3 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index db62429..6190efe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-03 Pavel Tisnovsky <ptisnovs(a)redhat.com>
+
+ * src/jenkinscat/renderers/configuration_page.clj:
+ * src/jenkinscat/server.clj:
+ Support for displaying ssh settings on the configuration page.
+
2015-02-02 Pavel Tisnovsky <ptisnovs(a)redhat.com>
* src/jenkinscat/server.clj:
diff --git a/src/jenkinscat/renderers/configuration_page.clj b/src/jenkinscat/renderers/configuration_page.clj
index 9bb3c0c..a2b9fa8 100644
--- a/src/jenkinscat/renderers/configuration_page.clj
+++ b/src/jenkinscat/renderers/configuration_page.clj
@@ -48,9 +48,10 @@
[:table {:class "table table-striped table-condensed table-hover table-borderer"}
[:tr
- [:th {:style "width:25%"} "Job name"]
+ [:th {:style "width:24%"} "Job name"]
[:th {:style "width:20%"} "GIT repo"]
[:th {:style "width:8%"} "Branch"]
+ [:th {:style "width:3%"} "Use ssh?"]
[:th {:style "width:4%"} "Artifact<br />2keep"]
[:th {:style "width:5%"} "Trigger"]
[:th {:style "width:11%"} "Artifacts"]
@@ -65,6 +66,7 @@
[:td [:a {:href (str jobs-href-prefix (:job-name job-configuration))} job-key]]
[:td (:git-repo job-configuration)]
[:td (:branch job-configuration)]
+ [:td (:use-ssh job-configuration)]
[:td (:artifacts2keep job-configuration)]
[:td (:trigger job-configuration)]
[:td (:artifacts job-configuration)]
diff --git a/src/jenkinscat/server.clj b/src/jenkinscat/server.clj
index f284878..872c9c1 100644
--- a/src/jenkinscat/server.clj
+++ b/src/jenkinscat/server.clj
@@ -609,6 +609,12 @@
[scm-node]
(->> scm-node :content second :content first :content first :content first))
+(defn read-use-ssh
+ [scm-node]
+ (if (->> scm-node :content second :content first :content second :content first)
+ "yes"
+ "no"))
+
(defn read-branch-from-xml
[scm-node]
(->> scm-node :content third :content first :content first :content first))
@@ -656,11 +662,13 @@
exclude (read-exclude-from-xml publisher-node)
irc (read-irc-settings-from-xml publisher-node)
build-script (read-build-script builders-node)
+ use-ssh (read-use-ssh scm-node)
]
;(clojure.pprint/pprint config-as-xml)
{:job-name updated-job-name
:git-repo git-repo
:branch branch
+ :use-ssh use-ssh
:artifacts2keep artifacts2keep
:trigger trigger
:artifacts artifacts
9 years, 4 months