GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BrianFlannery/cf-example-jenkins: How to deploy Jenkins to a Cloud Foundry based PaaS

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
jenkins @ e84890f
jenkins @ e84890f
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
README.md
README.md
 
 
build-for-using-tomcat.sh
build-for-using-tomcat.sh
 
 
go.sh
go.sh
 
 
jenkins.war
jenkins.war
 
 
manifest.yml
manifest.yml
 
 
recent_history.txt
recent_history.txt
 
 

Repository files navigation

Jenkins deployment to a Cloud Foundry based PaaS

Application Overview

Jenkins is an open source continuous integration tool written in Java. It allows to create extensive test workflow and monitor this process with web UI. . You can find its sources in Github repo.

Deploy to Cloud Foundry

There are several ways to deploy Jenkins to Cloud Foundry as an app.

Using custom buildpack and manifest: cf push.

Using java-buildpack: you need to rebuild Jenkins with build-for-using-tomcat.sh script and run cf push (see considerations for details).

After successful deployment you'll be able to see Jenkins using following URL http://jenkins.<cloud-foundry-domain>/.

Considerations

Using jenkins buildpack

The first and the easiest way is to use special buildpack. You will need specify -b parameter if you use command line to deploy Jenkins (doc) or buildpack attribute in manifest file (doc).

Deployment will look in the following way

Using command line arguments:

cf push -p jenkins.war -b https://github.com/Altoros/jenkins-buildpack -m 2G jenkins

, where -m stands for app RAM memory, -p path to jar/war file with the application.

Using manifest: cf push (manifest.yml will be automatically used).

Using java buildpack

Cloud Foundry has a java-buildpack, that is commonly used to run Java applications. It has list of possible frameworks it can handle. This list of frameworks are iterated to find out suitable for application you push. Main class has one of the first positions in this list. In the same time Jenkins has lots of dependencies and it's had to tell command that will gather all of them. Easier solution here is to make java-buildpack to run jenkins within tomcat. In order to do it, we will need to rebuild jenkins to "hide" Main class from java-buildpack. You can see build script in build-for-using-tomcat.sh file. Unfortunately, this way doesn't work well with all versions of Java buildpacks.

Manifest

applications:
  - name: jenkins
    path: jenkins.war
    buildpack: https://github.com/Altoros/jenkins-buildpack
    memory: 3G

Troubleshooting

Jenkins is very demanding memory application: it is recomended to run Jenkins on instances with at least 2G of RAM. You can also change memory consumption with parameters in starting command or build attributes.

Questions

You can leave your questions in issues of this project.

About

How to deploy Jenkins to a Cloud Foundry based PaaS

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.