donderdag 22 augustus 2013

Building the Industrial SQL Connector for Mylyn with Hudson

To get early warning when changes in Eclipse, Mylyn or EclipseLink break the build of Industrial SQL Connector for Mylyn, I have set up a build on my home Hudson CI server. When you want to use this connector you can do the same following the steps below.

Prerequisites

You will need a Hudson CI server set up, follow instructions here. You will also need maven installed from here or use the integrated version.

Create a new Hudson Job

01 createjob

After pressing OK you will see:

02 jobcreated

Configure and test SVN checkout

Enter the anonymous SVN checkout url from EclipseLabs : http://svn.codespot.com/a/eclipselabs.org/industrial-mylyn/trunk/. Also configure the build triggers, now set for 30 minutes past hour on weekdays. Can probably be less, but CI is supposed to be well continuous

03 configuresvn

After saving this configuration, press Build Now

04 testbuild

05 allcheckedout

When it's done, check the Workspace. It should look like this:

06 workspaceview

Configure the Maven/Tycho build and test it.

Next step is to add building the checked out code. Industrial SQL Connector for Mylyn comes preconfigured for a Maven/Tycho build so that is easy. Add the Build Step named Invoke Maven 3

07 addmaven3build

We need some advanced options so click the Advanced button. Most important is that the root pom file is not in the root directory but in com.industrialtsi.mylyn.maven/

08 configuremaven3build

Press Build Now again.

09 testbuildagain

Build success

When all is well you should see this, Finished: SUCCESS

10 testbuildsuccess

Results are all in the Workspace, so a bit hard to find:

11 testbuildresults

Publishing artifacts

You can archive and publish the artifacts produced by Maven by configuring the build.

12 archiveresults

This produces the following Job display:

13 resultspublished

Sunshine!

14 sunshine

Geen opmerkingen:

Een reactie posten