Issue with GitLab Plugin in Jenkins Multibranch Pipeline – URL Encoding Problem

We are setting up a CI/CD Pipeline process for our SFDX project.
We’ve used GitLab as our source code repository.
And Jenkins – Multibranch pipeline project for deployment.

I’m encountering an issue with the GitLab Plugin in my Jenkins Multibranch Pipeline setup. When attempting to clone my GitLab project using SSH key authentication, I’m facing an error in the pipeline script at the ‘checkout scm’ command. The error log indicates a problem with the Git URL being encoded incorrectly. Here’s the error log for reference:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential id_ed25519
> C:Program FilesGitbingit.exe rev-parse --resolve-git-dir D:JenkinsworkspaceLI-DevOps_main@2.git # timeout=10
Fetching changes from the remote Git repository
> C:Program FilesGitbingit.exe config remote.origin.url %[email protected]:22222]:akashkhichi/salesforceproject.git # timeout=10
Fetching without tags
Fetching upstream changes from %[email protected]:22222]:akashkhichi/salesforceproject.git
> C:Program FilesGitbingit.exe --version # timeout=10
> git --version # 'git version 2.22.0.windows.1'
> C:Program FilesGitbingit.exe fetch --no-tags --force --progress -- %[email protected]:22222]:akashkhichi/salesforceproject.git +refs/heads/main:refs/remotes/origin/main # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from %[email protected]:22222]:akashkhichi/salesforceproject.git
</code>
<code>Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential id_ed25519 > C:Program FilesGitbingit.exe rev-parse --resolve-git-dir D:JenkinsworkspaceLI-DevOps_main@2.git # timeout=10 Fetching changes from the remote Git repository > C:Program FilesGitbingit.exe config remote.origin.url %[email protected]:22222]:akashkhichi/salesforceproject.git # timeout=10 Fetching without tags Fetching upstream changes from %[email protected]:22222]:akashkhichi/salesforceproject.git > C:Program FilesGitbingit.exe --version # timeout=10 > git --version # 'git version 2.22.0.windows.1' > C:Program FilesGitbingit.exe fetch --no-tags --force --progress -- %[email protected]:22222]:akashkhichi/salesforceproject.git +refs/heads/main:refs/remotes/origin/main # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from %[email protected]:22222]:akashkhichi/salesforceproject.git </code>
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential id_ed25519
 > C:Program FilesGitbingit.exe rev-parse --resolve-git-dir D:JenkinsworkspaceLI-DevOps_main@2.git # timeout=10
Fetching changes from the remote Git repository
 > C:Program FilesGitbingit.exe config remote.origin.url %[email protected]:22222]:akashkhichi/salesforceproject.git # timeout=10
Fetching without tags
Fetching upstream changes from %[email protected]:22222]:akashkhichi/salesforceproject.git
 > C:Program FilesGitbingit.exe --version # timeout=10
 > git --version # 'git version 2.22.0.windows.1'
 > C:Program FilesGitbingit.exe fetch --no-tags --force --progress -- %[email protected]:22222]:akashkhichi/salesforceproject.git +refs/heads/main:refs/remotes/origin/main # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from %[email protected]:22222]:akashkhichi/salesforceproject.git

It seems the SSH URL i.e. [[email protected]:22222]:akashkhichi/salesforceproject.git is getting encoded to %[email protected]:22222]:akashkhichi/salesforceproject.git.

We’ve verified the configurations for the GitLab URL. And the SSH key is also working fine.

In attempting to resolve the issue, I verified the configuration settings for the GitLab URL and ensured that the SSH key was correctly configured and functioning. I also reviewed the Jenkins Multibranch Pipeline configuration to ensure that all settings related to GitLab integration were correctly set up.

We’ve tried the Git plugin for the same process and it worked fine but we have to use the GitLab plugin to utilize it’s features.

New contributor

Ritvik Bhomia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật