Skip to content

Commit

Permalink
[JENKINS-73471] Bump git to 5.5.0 pending BOM update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dohbedoh committed Sep 18, 2024
1 parent 1c371fd commit 26ccca2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
<scope>import</scope>
<type>pom</type>
</dependency>
<!-- TODO: remove when in bom -->
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
<version>5.5.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.cloudbees.jenkins.plugins.bitbucket;

import com.cloudbees.plugins.credentials.common.StandardUsernameCredentials;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.GitException;
import hudson.plugins.git.GitSCM;
import hudson.plugins.git.extensions.GitSCMExtension;
import java.io.IOException;
import org.jenkinsci.plugins.gitclient.GitClient;

public class GitClientAuthenticatorExtension extends GitSCMExtension {
Expand All @@ -26,12 +23,4 @@ public GitClient decorate(GitSCM scm, GitClient git) throws GitException {
return git;
}

@Override
public void beforeCheckout(GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener)
throws IOException, InterruptedException, GitException {
// TODO: remove if/when https://issues.jenkins.io/browse/JENKINS-73677 is eventually fixed
if (credentials != null) {
git.setCredentials(credentials);
}
}
}

0 comments on commit 26ccca2

Please sign in to comment.