f202e0ee0d
Added some technical details regarding git repository operations.
2019-11-01 08:22:27 +01:00
a40cf1436e
Readme update
2019-11-01 08:22:27 +01:00
cdee487a4e
README update
2019-11-01 08:22:27 +01:00
733b026216
Removed unnecsairy generate_event script.
2019-11-01 08:22:27 +01:00
b0e9ef20a7
Added development mode for http/ssh services
2019-11-01 08:22:02 +01:00
e157bc85b7
Cleanup service module
2019-11-01 08:19:51 +01:00
62def83977
Gitignore update
2019-11-01 08:19:51 +01:00
cedf1dea09
Add parameters for the service
2019-11-01 08:19:51 +01:00
8df8fd3788
Simplify logging.
...
Distinguish between running services from service module, and running
them directly. If module is run directly, besides the log file, it will
also make logging on screen.
2019-11-01 08:19:51 +01:00
ce6e2f19c8
Support python 3.6 or 3.7.
...
Python 2.7 is EOL, and 3.8 will be (re) added soon, since it's
unavailable on most distributions.
2019-11-01 08:19:51 +01:00
7297f8cf8b
Rename http to rest due to wierd issue in bottle
2019-11-01 08:19:51 +01:00
372b525715
Update gitignore
2019-11-01 08:19:51 +01:00
57bf9556c7
Added python package setup and tox
2019-11-01 08:19:51 +01:00
e22fac98fc
Add main service which will launch both http and ssh services.
2019-11-01 08:19:51 +01:00
c87a71245c
Make ferrit a python module
2019-11-01 08:19:51 +01:00
28cd159245
moved servers into ferrit module
2019-11-01 08:19:51 +01:00
0f70f075d5
Make http server to use class, instead functions.
2019-11-01 08:19:51 +01:00
9317dc9ef3
Fix: use actual fifo queue instead of the normal file
2019-11-01 08:19:51 +01:00
da24f505bb
Added helper script for generating json payload.
...
This helper can be used with ferrit ssh server to generate appropriate
json data event meant to be sent to jenkins server.
2019-11-01 08:19:18 +01:00
9605cb22f0
Implement method /a/changes.
...
After gerrit recives an action (like creating a review, comment, and so
on) it will send appropriate json from ssh server. Jenkins, which is
listening on the ssh channel will receive this message and do
appropriate action (for example, it will do the build/test whatever),
and sends back notification back to HTTP gerrit server to /a/changes
endpoint. There are couple of requests to that url, which will indicate
what jenkins is doing (like starting build, sending result info).
2019-11-01 08:17:14 +01:00
283cb787bb
Readme update
2019-11-01 08:17:14 +01:00
05608aa2e0
Use FIFO named queue for triggering actions on Jenkins side.
2019-11-01 08:17:13 +01:00
802cce3f83
Added new REST endpoints.
...
Two new endponds added:
- /a/plugins/events-log/events/
- /a/changes
2019-11-01 08:16:43 +01:00
Szymon Datko
e547a9a507
Implement simple events pusher
...
Just POC, but works !!!
2019-11-01 08:10:37 +01:00
41b1b284a6
Simplify http server
2019-10-29 19:26:47 +01:00
Szymon Datko
1d9d69cca9
Fix global_request logging
...
The msg fiels is paramiko Message object.
It cannot be converted simply via str().
2019-10-29 19:26:47 +01:00
Szymon Datko
c026194a03
Fix version string once more
...
Apparently the Gerrit Trigger plugin only recognizes the value
if it matches specific pattern. Therefore there must be "gerrit
version 2.16.7" so we can use all features of the plugin.
2019-10-29 19:26:47 +01:00
Szymon Datko
524d10956c
Fix version string and http server output
2019-10-29 19:26:47 +01:00
Szymon Datko
8960f88360
Tiny cleanup
2019-10-29 19:26:47 +01:00
7d316947b4
Wait for user interaction on interactive connection
2019-10-29 19:26:47 +01:00
867a2c4716
Return instead of closing the channel on interactive session.
2019-10-29 19:26:47 +01:00
84413a1658
Removed interactive ssh part
2019-10-29 19:26:47 +01:00
f3a5e15545
Added log to ignore
2019-10-29 19:26:47 +01:00
830a8b3077
Added logger
2019-10-29 19:26:45 +01:00
68ea17b854
Cleaned up code a bit
2019-10-29 19:23:31 +01:00
Szymon Datko
883872549c
Initial garbage
2019-10-29 19:20:18 +01:00
Szymon Datko
38770da434
Initial note and .gitignore
2019-10-24 14:07:59 +02:00
778b44292d
Initial import
2019-10-24 14:01:49 +02:00