<p>I migrated Jenkins with <code>thinBackup</code> plugins. When I restart my new Jenkins master, accessing it via <a href="http://new_jenkins_ip:8080" rel="nofollow noreferrer">http://new_jenkins_ip:8080</a> will redirect me to <a href="https://old_jenkins_domain" rel="nofollow noreferrer">https://old_jenkins_domain</a>.</p>

<p>My old Jenkins runs with services, it was setup long ago. My new Jenkins runs in k8s, I edited stable/jenkins chart and deployed it with Helm.</p>

<p>At first, I thought Jenkins URL is the cause, so I change configuration in <code>jenkins.model.JenkinsLocationConfiguration.xml</code> (according to <a href="https://stackoverflow.com/questions/11723735/where-is-jenkins-url-configuration-stored/36031036">this</a>) and restart Jenkins by killing its pod (I deploy new Jenkins in k8s). But it's still redirecting to <a href="https://old_jenkins_domain" rel="nofollow noreferrer">https://old_jenkins_domain</a>.</p>

<p>I also try copying entire JENKINS_HOME (<a href="https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another">this</a>) directory and yes, it's still redirecting to <a href="https://old_jenkins_domain" rel="nofollow noreferrer">https://old_jenkins_domain</a>.</p>

<p>Another problem is that I'm using <code>github-oauth</code> and <code>matrix-auth</code> plugins and if I don't install these before performing thinBackup migration, Jenkins will fail to start up and restart itself forever. I want to know why.</p>

<p>I actually can access <a href="http://new_jenkins_ip:8080/login" rel="nofollow noreferrer">http://new_jenkins_ip:8080/login</a> but when I hit login, <code>github-oauth</code> just throw an NullPointerException.
I might try this <a href="https://github.com/prasadsalvi21/JenkinsMigration" rel="nofollow noreferrer">python</a> to migrate plugins because I think <code>thinBackup</code> can't migrate all the <code>github-oauth</code> config.</p>

Phootip
<p>It's <code>github-oauth</code> plugins that keep directing me to my old site. I new oauth app in github and let it redirecting to my new IP.</p>
