[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnpubsub as build server trigger - Jenkins

From: Thomas Åkesson <thomas.akesson_at_pdsvision.se>
Date: Sun, 4 Dec 2016 13:30:42 +0100

Hi all,

I have been looking into svnpubsub for a couple of use cases in our XML Authoring CMS (based on Subversion). Both use cases involve Java as client to svnpubsub.

Has anyone considered developing a Jenkins Build Trigger plugin that connects to svnpubsub? Seems like the ideal way of avoiding the polling without the overhead of individual hooks.

There are a couple of similar plugins to Jenkins. One uses XMPP (looks difficult to adapt to svnpubsub) and one uses AWS SQS.

I have experimented with teaching svnpubsub the Server Side Events format with the objective to use an existing Java library (e.g. jersey) to observe those events with just a few lines of code. The intention is to make svnpubsub select format based on client accept header.

The output would be approximately:

< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Date: Sun, 04 Dec 2016 12:21:42 GMT
< X-Svnpubsub-Version: 1
< Content-Type: text/event-stream
< Server: TwistedWeb/16.0.0
<
event: svnpubsub
data: {"version": 1}

event: stillalive
data: {"stillalive": 1480854117.81563}

event: stillalive
data: {"stillalive": 1480854132.816077}

event: commit
data: {"committer": "testuser", "log": "", "repository": "50217dbe-7a01-4030-aaaa-f1baa9200a11", "format": 1, "changed": {"repos.txt": {"flags": "U "}}, "date": "2016-12-04 12:22:22 +0000 (Sun, 04 Dec 2016)", "type": "svn", "id": 82}

event: stillalive
data: {"stillalive": 1480854147.817536}

The next step is to verify that an existing Java library can be used to observe these events.

Anyone interested in co-developing a Jenkins Build Trigger plugin? How is ASF infra managing build triggers?

Thanks,
Thomas Å.
Received on 2016-12-05 07:41:34 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.