Skip to Content

Deploying any java application on any cloud platform should be easy and Jenkins should be one of them, however we find not any credible source actually explains minute details and pitfalls we face once we start deploying jenkins on a PaaS.

SAP Cloud Platform is the leading cloud platform for enterprise cloud application and we want to just leverage its capability to host jenkins.

Jenkins as you know is “The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project” – Source:Jenkins.io.

 

Lets go step by step :

  1. Download jenkins.war file from https://jenkins.io/download/
  2. Create a trial account in SAP Cloud Platform if you don’t have one. Note: jenkins war file is larger than 20 MB and hence wont be supported in cloud foundry stack.

3. Create space and subaccount in neo trial where you can

4. go to SAP cloud platform cockpit of neo trial and select “Java Applications” under “Applications” from where you can deploy any java application.

5. click and upload your downloaded jenkins.war file and maintain configuration like the one below and deploy.

Note: the JVM arguments “-Djenkins.install.runSetupWizard=false” is required as SuperAdmin credentials is required for the first setup of jenkins. If we deploy Jenkins on PaaS, there is no way to find the dynamically generated key(credentials)

6. Once the deployment is done , start and you should be able to access jenkins on SAP Cloud Platform via specified URL.

 

Tried and Tested 🙂

 

Thanks

Rahul Kumar

 

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Przemek Kubicki

    Hey,

    you can get the initial password from logging, just setup jenkins.install.SetupWizard to INFO severity.

    Well, technically you can install Jenkins on Neo, but doesn’t have much sense, because the instance will not survive the restart. Jenkins works with the file system but there is no persistent file system available in the developer accounts of the Neo SAP Cloud Platform. After an application restart, everything stored on the file system will be lost. You need to reinstall all plugins, setup env, projects, piplelines etc.

    Regards

    (0) 

Leave a Reply