Pivotal Knowledge Base

Follow

Deploying Jenkins CI on Pivotal Web Services

Purpose

To describe how to install Jenkins CI on PWS.

 

Environment

Jenkins CI 1.588

 

Products

This has been tested to work on PWS CF release v.193.

 

Instructions

  • Use the following buildpack when deploying Jenkins CI: https://github.com/aladyzhensky/java-buildpack-jenkins.git. We needed to customize standard CF Java Buildpack to disable Spring Auto Configuration because Jenkins is using a legacy version of Spring which is not 100% compatible with the standard buildpack's Spring Auto Configuration.

  • Expand your war file with ‘jar xvf your_war_file.war and edit META-INF/MANIFEST.MF. From this file, remove the line starting with Main (will be close to the top of the file). We need to remove the Main method from the MANIFEST.MF, so JENKINS is treated by PWS like a Tomcat app rather than pure Java app.

  • Repackage your war file with ‘jar cvf your_war_file.war .’ It’s a good idea to remove old war file beforehand.

  • cf push -b https://github.com/aladyzhensky/java-buildpack-jenkins.git

 

Additional Information

Important: The configured Jenkins instance needs to be configured with permanent storage such as AWS S3 so the data persists between Jenkins restarts.

Comments

Powered by Zendesk