I changed all jobs on Policeman Jenkins with the following script in the Admin interface (thanks to Stackoverflow):


import hudson.plugins.git.*

import jenkins.*

import jenkins.model.*


def modifyGitUrl(url) {

  if (url=='git://git.apache.org/lucene-solr.git') {

     return 'https://gitbox.apache.org/repos/asf/lucene-solr.git';


  return url;



Jenkins.instance.items.each {

  if (it.scm instanceof GitSCM) {

    def oldScm = it.scm

    def newUserRemoteConfigs = oldScm.userRemoteConfigs.collect {

      new UserRemoteConfig(modifyGitUrl(it.url), it.name, it.refspec, it.credentialsId)


    def newScm = new GitSCM(newUserRemoteConfigs, oldScm.branches, oldScm.doGenerateSubmoduleConfigurations,

                            oldScm.submoduleCfg, oldScm.browser, oldScm.gitTool, oldScm.extensions)

    it.scm = newScm






Uwe Schindler

Achterdiek 19, D-28357 Bremen

http://www.thetaphi.de <http://www.thetaphi.de/>



From: Uwe Schindler <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2019 11:38 PM
Subject: Re: [NOTICE] Mandatory migration of git repositories to gitbox.apache.org


Ok, thanks Steve for figuring that out. I will fix Policeman.


Am January 10, 2019 10:25:42 PM UTC schrieb Steve Rowe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >:

Thanks for bringing this up Cassandra.

I looked at all the ASF Jenkins jobs' configs yesterday, and they all point to the read-only mirror at git://git.apache.org/lucene-solr.git .  Yesterday I thought that this would continue to mirror the new gitbox repo, but I guess not?  http://git.apache.org no longer lists lucene-solr.git , but the mirror still appears to exist.

Infra's Daniel Gruno commented yesterday on https://issues.apache.org/jira/browse/INFRA-17593 : "git.a.o should never be used or trusted as canonical, please. the mirror is _not_ listed on git.apache.org and is not updated there. Use gitbox or github, either will suffice - gitbox is a bit beefier than git-wip was, so it'll play along."

On https://issues.apache.org/jira/browse/INFRA-17526 Daniel wrote that he removed Hadoop's hidden -- i.e. no longer advertized at http://git.apache.org/ -- read-only git.a.o mirror at the project's request.  Should we ask for the same thing?

I'll go fix all the Lucene/Solr jobs' configs on ASF and my Jenkins to point to the gitbox.a.o repo.


On Jan 10, 2019, at 4:28 PM, Cassandra Targett <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:

This was done yesterday, but it appears that our Jenkins jobs need to be updated? I looked at a couple of Ref Guide builds and doc changes I made yesterday and today aren’t showing up, but it’s hard for me to tell when looking at the other jobs for artifacts to know if that’s true for all the jobs or not.

Could someone who knows these jobs check?

I think we have some wiki docs that need to be updated with the new repo address. I’ll get to it eventually unless someone has time sooner.

On Jan 3, 2019, 10:23 AM -0600, David Smiley <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >, wrote:

Good questions Erick; please post as a comment to the issue.

On Thu, Jan 3, 2019 at 11:21 AM Erick Erickson <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
+1 and thanks!

Any time works for me. I assume we'll get some idea of when it'll
happen, I'm also assuming that the git-wip-us.apache.org will just
completely stop working so there's no chance of pushing something to
the wrong place?
On Thu, Jan 3, 2019 at 8:15 AM David Smiley <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
 I agree with Uwe's sentiment.  Essentially anywhere in your git remote configuration that refers to git-wip-us.apache.org will need to change to gitbox.apache.org  open up .git/config to see what I mean.  At your prerogative, you may instead work with GitHub's mirror exclusively -- a new option.  If you want to do that, see https://gitbox.apache.org which is pretty helpful (do read it no matter what you do), and includes a link to the "account linking page".  Personally, I intend to commit to gitbox but I will also link my accounts as I suspect this will enable more direct use of the GitHub website like closing old pull requests (unconfirmed).

 On Thu, Jan 3, 2019 at 10:57 AM Alan Woodward <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
 +1, thanks for volunteering David!
 On 3 Jan 2019, at 15:41, Jan Høydahl <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:


 Jan Høydahl, search solution architect
 Cominvent AS - www.cominvent.com <http://www.cominvent.com>

 3. jan. 2019 kl. 14:45 skrev David Smiley <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >:

 I propose we (me) coordinate with them to do this transition on Wednesday next week (Jan 9th).  It appears to be a minor inconvenience.  If there are problems, we'll have some work days after to deal with it.  And doing this ahead of the mass migration may give us more individual attention from the busy infra team if there are problems.  Can I get some +1's?

 On Thu, Jan 3, 2019 at 8:18 AM Apache Infrastructure Team <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
 Hello, lucene folks.
 As stated earlier in 2018, all git repositories must be migrated from
 the git-wip-us.apache.org URL to gitbox.apache.org, as the old service
 is being decommissioned. Your project is receiving this email because
 you still have repositories on git-wip-us that needs to be migrated.

 The following repositories on git-wip-us belong to your project:
  - lucene-solr.git
 We are now entering the mandated (coordinated) move stage of the roadmap,
 and you are asked to please coordinate migration with the Apache
 Infrastructure Team before February 7th. All repositories not migrated
 on February 7th wi