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 :
- Download jenkins.war file from https://jenkins.io/download/
- 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 🙂