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|
|# Only listen on http; disable ajp and https|
|web: java -jar jenkins.war --httpPort=$PORT --ajp13Port=-1 --httpsPort=-1|
Did this work for anyone? @maheshwarimani1991 I think the password is password.
@maheshwarimani1991 password is store on ~/.jenkins or $JENKINS_HOME. However, if you first start or restart dyno, you can access its log to get the pass code.
heroku logs --app your-app-name
How do you persist configuration?
@HongQuanTo where exactly we have to run this command "heroku logs --app your-app-name" ?
I have deployed jenkins on heroku and deployed successfully and accessing jenkins on heroku but after 4 5 hours it is asking for Administrator password
Any news today for the ephemeral problem on Heroku?
@satnam348 I am facing the same issue, after 4 or 5 hours it is asking me for the Administrator password. Anyone know why?
To get initial password restart the Dyno and type
heroku logs --app your-app-name where you installed heroku cli
For preventing it to sleep register site here
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 ?
Tried deploying the app to heroku. Deployed successfully. On Jenkins page its asking for Administrator password. Where can I find the same. Please suggest.