193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Watson Workspace & Work Services needs Code, Code, Code, Community, Code, Code and even more Code and Community….
Fri, Oct 28th 2016 6
XPages Designer Plugin 4 Eclipse – The Basics!
Sat, Apr 2nd 2016 7
Building NSF using the maven headlessdesigner plugin from OpenNTF
Sat, Mar 26th 2016 7
A developers dream – for sure
Tue, Dec 1st 2015 8
Another nice journey with Maven – or how to sign a jar file
Thu, Nov 26th 2015 5
My slides from SNoUG 2015 – Content is in German
Wed, Oct 28th 2015 6
My slides from SNoUG 2015 – Content is in German
Wed, Oct 28th 2015 7
Top 10
Automated build with Jenkins / Some progress
Mon, Apr 7th 2014 9
Using JUnit in XPages Projects
Thu, Aug 21st 2014 9
IBM Connections – The next AppDev Plattform?
Mon, Jan 27th 2014 8
A developers dream – for sure
Tue, Dec 1st 2015 8
First Swiss XPages Developer Crowd Day
Fri, Mar 14th 2014 7
A word about Maven
Tue, Dec 23rd 2014 7
My slides from SNoUG 2015 – Content is in German
Wed, Oct 28th 2015 7
Building NSF using the maven headlessdesigner plugin from OpenNTF
Sat, Mar 26th 2016 7
XPages Designer Plugin 4 Eclipse – The Basics!
Sat, Apr 2nd 2016 7
Maven and the magic of profiles
Wed, Dec 24th 2014 6


Automated build with Jenkins / Some progress
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
Christian Güdemann    

This saturday was dedicated to do some tests with automated build and Jenkins / Maven. Jenkins is a brilliant tool to let a server do some automated tasks. Maven is the tool which delivers a configuration language to describe how to build something. The goal of maven is to do the same thing always in the same way. For me as a highly creative person is doing the same thing always in the same way, a creativity killer. So I think Maven will be my friend, because he is doing all the annoying jobs for me.

But Maven needs some clear instructions to do his stuff right. And like Eclipse needs Maven also a clear environment to work. Based on some research on the SBT Project and with the help of my friend Google, I figured out that I need eclipse.tycho to build plugins, features and update sites. I had prior to saturday already done the following steps:

  1. Setup of Jenkins
  2. Setup of Maven
  3. Setup of Git (for Grabbing the Project direct form the GitHub)

I started with the parent pom.xml file. This file contains all instructions and dependencies for all my plugin. The full file can be read here.

The important thing was to define the following repository:

<repositories>
<repository>
<id>notes</id>
<layout>p2</layout>
<url>${notes-platform}</url>
</repository>
</repositories>
 

As I sad. Maven needs a clear environment to build all the plugins and the eclipse.tycho needs a repository, where all the plugins of the domino runtime are located. Unfortunately such a repository is currently not available. So I had to create a p2 update site. This is in fact the same, as you define your eclipse development environment to use a specific target platform. See the following instruction, how I did that.

As you can see in the repository definition, I’ve nut used in the <url> tag a fix url. It’s a variable, which can be sent to Maven in the command line. This has the good impact that I can use my new update site also as a file resource. To build my POI4XPages Project, I had only to checkout all the code from git, switch to the feature/CIandMavenIntegration branch and go to the root directory of the project:

mvn clean install -Dnotes-platform=file:///D:/updatesite/site.p2/
did the job…. almost :)

The next problem was, that Maven uses the standard JDK as Java Environment to compile. So I toke the DominoProg/jvm folder and copied it to my build server. Then I changed the Java Home to my new jvm location. In the mean time, I had also done all the pom.xml files for the plugins. And then, the great moment happens:

buildDoneWhats next….

  • I will now make some documentation, how I’ve setup this also on my Jenkins Server
  • I’ve to think, what should I do with the result of the build (assembly)
  • Test the same with Notes Application (Martin Pradny has made some good progress)
  • And learn how to test after the build :) (The next annoying thing….)

 




---------------------
http://guedebyte.wordpress.com/2014/04/07/automated-build-with-jenkins-some-progress/
Apr 07, 2014
10 hits



Recent Blog Posts
6
Watson Workspace & Work Services needs Code, Code, Code, Community, Code, Code and even more Code and Community….
Fri, Oct 28th 2016 4:51p   Christian Guedemann
A




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition