You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/02/16 11:45:19 UTC

[kibble] branch master updated (963f159 -> ddcdb0a)

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git.


    from 963f159  link to demo in readme
     new 18716d4  fix scope!
     new ddcdb0a  Add Jenkins as a potential source type

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 api/pages/sources.py              |   2 +-
 api/yaml/sourcetypes.yaml         |   9 +++++++++
 ui/images/sourcetypes/jenkins.png | Bin 0 -> 15700 bytes
 3 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 ui/images/sourcetypes/jenkins.png

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.

[kibble] 02/02: Add Jenkins as a potential source type

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit ddcdb0af6dfbb78ea33289afd710e0099cb1b07f
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Feb 16 12:45:10 2018 +0100

    Add Jenkins as a potential source type
---
 api/yaml/sourcetypes.yaml         |   9 +++++++++
 ui/images/sourcetypes/jenkins.png | Bin 0 -> 15700 bytes
 2 files changed, 9 insertions(+)

diff --git a/api/yaml/sourcetypes.yaml b/api/yaml/sourcetypes.yaml
index 4bb7f73..e01c9cd 100644
--- a/api/yaml/sourcetypes.yaml
+++ b/api/yaml/sourcetypes.yaml
@@ -54,6 +54,15 @@ gerrit:
     regex: "https?://.+/r/.+"
     example: https://review.rdoproject.org/r/puppet/puppet-designate
 
+jenkins:
+    title: Jenkins CI Server
+    description: A Jenkins CI Server - Grabs all jobs in one go.
+    regex: "https?://.+/"
+    example: https://builds.apache.org/
+    optauth:
+        - username
+        - password
+
 twitter:
     title: "Twitter Handle"
     regex: (@.+)
diff --git a/ui/images/sourcetypes/jenkins.png b/ui/images/sourcetypes/jenkins.png
new file mode 100644
index 0000000..99a60d4
Binary files /dev/null and b/ui/images/sourcetypes/jenkins.png differ

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.

[kibble] 01/02: fix scope!

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit 18716d4ed4deb810785a9c732d30601ced89a6f0
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Feb 16 12:44:47 2018 +0100

    fix scope!
---
 api/pages/sources.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/pages/sources.py b/api/pages/sources.py
index a571d35..786d8e6 100644
--- a/api/pages/sources.py
+++ b/api/pages/sources.py
@@ -151,6 +151,7 @@ def run(API, environ, indata, session):
         raise API.exception(403, "You must be logged in to use this API endpoint! %s")
     
     method = environ['REQUEST_METHOD']
+    dOrg = session.user['defaultOrganisation']
     
     if method in ['GET', 'POST']:
         # Fetch organisation data
@@ -159,7 +160,6 @@ def run(API, environ, indata, session):
         if 'defaultOrganisation' not in session.user or not session.user['defaultOrganisation']:
             raise API.exception(400, "You must specify an organisation as default/current in order to add sources.")
         
-        dOrg = session.user['defaultOrganisation']
         if session.DB.ES.exists(index=session.DB.dbname, doc_type="organisation", id= dOrg):
             org = session.DB.ES.get(index=session.DB.dbname, doc_type="organisation", id= dOrg)['_source']
             del org['admins']

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.