[JIRA] (JENKINS-60236) git plugin remote url not configurable

5 views
Skip to first unread message

tbretz@power-werks.com (JIRA)

unread,
Nov 20, 2019, 5:51:04 PM11/20/19
to jenkinsc...@googlegroups.com
Tim Bretz created an issue
 
Jenkins / Bug JENKINS-60236
git plugin remote url not configurable
Issue Type: Bug Bug
Assignee: Boguslaw Klimas
Attachments: Screen Shot 2019-11-20 at 4.46.51 PM.png
Components: git-parameter-plugin, git-plugin
Created: 2019-11-20 22:50
Priority: Blocker Blocker
Reporter: Tim Bretz

After migrating our Bitbucket instance to a new server with a new IP address, we're not able to change the IP address to point jenkins at the new server. the Bitbucket server is behind a proxy `bitbucket.our.domain` and the url has not changed. in the pipeline, we define the scm in the first step of the first stage:

scm: [ $class: 'GitSCM', branches: [[name: "${BRANCH}"]], userRemoteConfigs: [[credentialsId: '*******************************',url: 'ssh://g...@bitbucket.our.domain:7999/project/repository.git']] ]

with pipelines, the Source Code Management section does not exist, so this is the only place that the remote url is defined. Yet, when trying to Build with Parameters we get the attatched error, which is clearly not the url that has been defined.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 20, 2019, 6:52:03 PM11/20/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: git-parameter-plugin

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 20, 2019, 6:52:03 PM11/20/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-60236
 
Re: git plugin remote url not configurable

I assume that you are using static agents and thus are reusing workspaces. The git plugin is not sophisticated enough to apply the change of remote URL (or any other remote settings) to the existing workspace. If that is the case, then you can temporarily modify the pipeline script to precede the checkout scm step with a deleteDir step. That will erase the working repository in the workspace, it will then be cloned from the new URL and will write the new URL into the workspace.

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 20, 2019, 6:52:03 PM11/20/19
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
 
Change By: Mark Waite
Assignee: Boguslaw Klimas
Reply all
Reply to author
Forward
0 new messages