Jenkins on Heroku
- Download jenkins.war
- Create pom.xml (it'll be pretty much empty)
- Create Procfile to do 'java -jar jenkins.war' etc...
|<?xml version="1.0" encoding="UTF-8"?>|
|Just need a plain and mostly empty pom.xml for Heroku to detect that this is a Java application|
I exactly performed the above steps. Created the git and deployed the git on heroku. It acknowledged me about the build is successful and the application has been deployed. But when i ran the application. It displayed application error.
Please advise, if i am missing any step.
I found having just the Procfile in the git repo to be sufficient and using the heroku-deploy plugin works:
However, since jenkins uses the filesystem for job & build data, you can't use it for much. Have you overcome this limitation somehow?
Seems to work like a charm for me. I have a very hacky solution which is to add the .jenkins/... directly to the git repo. https://github.com/spudnic/herkou-jenkins For obvious reasons this is not the most secure way to do it but it does work. The tricky part is that any plugins or job configurations that I want to do need to I have to do them locally and then cp from my ~/.jenkins/ to REPO/.jenkins....
I tried without success, too many moving parts.
Was anyone able to fix this?I tried what @spudnic suggested and it works but any update I make to the jobs does not get persisted after I restart the dyno. Thinking it was the write permission on the .jenkins file I did changed the writer permission (chmod -r 777) but still no change persisted. I am leaning toward using AWS.
Where does the jenkins create its configuration files in heroku after it has been deployed using this approach.
Since Heroku is not persisting the configuration files after restart so I want to keep all these configuration files inside the git. So after restart I do not need to configure again and it will pick from the config files. Is it possible ?