-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.346.1
Bitbucket Server Integration 3.2.2
Although the Job has been configured to use a mirror, Jenkins ignores the setting and continues to pull from the main server URI bitbucket-amazon-uat.intranet
The mirror is ssh://git@bitbucket-cimirror-amazon-uat.intranet:7999/
Config:
<repositories>
<com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMRepository>
<credentialsId>Mark-March-2022</credentialsId>
<mirrorName>Bitbucket UAT CI Mirror</mirrorName>
<projectKey>JEN</projectKey>
<projectName>Jenkins</projectName>
<repositoryName>blue</repositoryName>
<repositorySlug>blue</repositorySlug>
<serverId>aa5d6d2e-da12-4571-9f5b-508b8ad45ee7</serverId>
<sshCredentialsId>e01949841-ssh-uat-bitbucket</sshCredentialsId>
----------------------------------------------
13:25:28 Lightweight checkout support not available, falling back to full checkout.
13:25:28 Checking out com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM into /apps/external/4/jenkins-oss/jobs/BitBucket-Tests/jobs/Blue-New-Pipeline/workspace@script/2032cb8b109963b2923cf383c969836911da6879e450544109df046c4fd8d47e to read Jenkinsfile
13:25:28 The recommended git tool is: NONE
13:25:28 using credential e01949841-ssh-uat-bitbucket
13:25:28 > git rev-parse --resolve-git-dir /apps/external/4/jenkins-oss/jobs/BitBucket-Tests/jobs/Blue-New-Pipeline/workspace@script/2032cb8b109963b2923cf383c969836911da6879e450544109df046c4fd8d47e/.git # timeout=10
13:25:28 Fetching changes from the remote Git repository
13:25:28 > git config remote.blue.url ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git # timeout=10
13:25:28 Fetching upstream changes from ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git
13:25:28 > git --version # timeout=10
13:25:28 > git --version # 'git version 2.35.1'
13:25:28 using GIT_SSH to set credentials e01949841-ssh-uat-bitbucket
13:25:28 [INFO] Currently running in a labeled security context
13:25:28 [INFO] Currently SELinux is 'enforcing' on the host
13:25:28 > /usr/bin/chcon --type=ssh_home_t /apps/external/4/jenkins-oss/jobs/BitBucket-Tests/jobs/Blue-New-Pipeline/workspace@script/2032cb8b109963b2923cf383c969836911da6879e450544109df046c4fd8d47e@tmp/jenkins-gitclient-ssh3042676503294838901.key
13:25:28 > git fetch --tags --force --progress – ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git +refs/heads/:refs/remotes/blue/ # timeout=10
13:25:29 > git rev-parse refs/remotes/blue/master^{commit} # timeout=10
13:25:29 Checking out Revision 27396daf554d971c5369e3200b3105c17aad5c40 (refs/remotes/blue/master)
13:25:29 > git config core.sparsecheckout # timeout=10
13:25:29 > git checkout -f 27396daf554d971c5369e3200b3105c17aad5c40 # timeout=10
13:25:29 Commit message: "Pull request #1: First change"
13:25:29 > git rev-list --no-walk 27396daf554d971c5369e3200b3105c17aad5c40 # timeout=10
13:25:29 Posting build status of INPROGRESS to bitbucket-amazon-uat for commit id [27396daf554d971c5369e3200b3105c17aad5c40] and ref 'refs/heads/master'
13:25:30 [Pipeline] Start of Pipeline
13:25:30 [Pipeline] node
13:25:30 Running on dt-rhel7-aws-duwdsr002209522 in /apps/external/5/jenkins-tool/jenkins/workspace/BitBucket-Tests/Blue-New-Pipeline
13:25:30 [Pipeline] {
13:25:30 [Pipeline] stage
13:25:30 [Pipeline]
{ (Declarative: Checkout SCM) 13:25:30 [Pipeline] checkout 13:25:30 The recommended git tool is: NONE 13:25:30 using credential e01949841-ssh-uat-bitbucket 13:25:30 Fetching changes from the remote Git repository 13:25:31 Checking out Revision 27396daf554d971c5369e3200b3105c17aad5c40 (refs/remotes/blue/master) 13:25:31 Commit message: "Pull request #1: First change" 13:25:31 Posting build status of INPROGRESS to bitbucket-amazon-uat for commit id [27396daf554d971c5369e3200b3105c17aad5c40] and ref 'refs/heads/master' 13:25:30 > git rev-parse --resolve-git-dir /apps/external/5/jenkins-tool/jenkins/workspace/BitBucket-Tests/Blue-New-Pipeline/.git # timeout=10 13:25:30 > git config remote.blue.url ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git # timeout=10 13:25:30 Fetching upstream changes from ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git 13:25:30 > git --version # timeout=10 13:25:30 > git --version # 'git version 2.35.1' 13:25:30 using GIT_SSH to set credentials e01949841-ssh-uat-bitbucket 13:25:30 [INFO] Currently running in a labeled security context 13:25:30 [INFO] Currently SELinux is 'enforcing' on the host 13:25:30 > /usr/bin/chcon --type=ssh_home_t /apps/external/5/jenkins-tool/jenkins/workspace/BitBucket-Tests/Blue-New-Pipeline@tmp/jenkins-gitclient-ssh1691138566341518909.key 13:25:30 > git fetch --tags --force --progress – ssh://git@bitbucket-amazon-uat.intranet:7999/jen/blue.git +refs/heads/:refs/remotes/blue/ # timeout=10 13:25:31 > git rev-parse refs/remotes/blue/master^
- timeout=10
13:25:31 > git config core.sparsecheckout # timeout=10
13:25:31 > git checkout -f 27396daf554d971c5369e3200b3105c17aad5c40 # timeout=10
13:25:31 [Pipeline] }
...