Currently Being Moderated

Yes

neojenkins1.jpg

Is it easy?


Easier than you imagine:

1. Download Jenkins: http://jenkins-ci.org/

2. Deploy jersey.war

neojenkins2.jpg

3. Start the application

neojenkins3.jpg

4. Check the log for possible errors. If it looks like this, the deploy just worked fine

 

#jenkins#web#null#null#Deploying file with path [/usr/sap/ljs/./pickup/jenkins.war]|
#jenkins#web#null#null#Jenkins home directory: /usr/sap/ljs/home/.jenkins found at: $user.home/.jenkins|
#jenkins#web#null#null#Deployment of file with path [/usr/sap/ljs/./pickup/jenkins.war] is successful.|

 

5. Enjoy Jenkins on Neo

neojenkins4.jpg

Can you use it?

Well, here the answer is: it depends. You can of course download plugins to adjust Jenkins to your specific needs. To use a GitHub repository, just download the plugins.

neojenkins5.jpg

The problem is that you also have to provide git binaries that the plugin uses. When they are not made available, the plugin won't work. If you do not know how to provide the binaries to the plugin, you cannot use git with your Jenkins on Neo installation. On the other side, SVN is supported out of the box by Jenkins. Adding a SVN repository is not a problem. To see if this works, I created a Java project using the Maven 5 minutes tutorial.

 

Maven command:

 

mvn archetype:generate –DgroupId=com.tobias.neo.maven –DartifactId=NeoMaven –DarchteypeArtifactId=maven-archetype-quickstart –DinteractiveMode=false

 

This produces the following project structure that can be checked in to SVN.

neojenkins6.jpg

Running now a build shows that Jenkins is able to check out the files from SVN

neojenkins7.jpg

While you can tell Jenkins to download Ant, Maven and Java, this does not always work. For instance, see below the error thrown by Maven while trying to download dependencies found in pom.xml:

neojenkins8.jpg

Adjusting the Java project to use ant by putting a build.xml file into the directory and providing the dependency JARs (/lib):

neojenkins9.jpg

Final build

neojenkins10.jpg

Compile results:

neojenkins11.jpg

You can use Jenkins on Neo as your Continuous Integration solution. I am just not sure, if this is actually permitted by NW Cloud (data storage, workspace, directly in the file system) and if so, if it is a performing solution.

Comments

Actions

Filter Blog

By author:
By date:
By tag: