Skip to content

Commit 7c57506

Browse files
committed
older build can potentially have sshRemote and httpRemote unsaved due to previous transient field.
1 parent 806112b commit 7c57506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMSource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ protected Project getGitlabProject(GitLabApi gitLabApi) {
201201
if (gitlabProject == null) {
202202
try {
203203
gitlabProject = gitLabApi.getProjectApi().getProject(projectPath);
204+
sshRemote = gitlabProject.getSshUrlToRepo();
205+
httpRemote = gitlabProject.getHttpUrlToRepo();
204206
} catch (GitLabApiException e) {
205207
throw new IllegalStateException("Failed to retrieve project " + projectPath, e);
206208
}

0 commit comments

Comments
 (0)