File tree Expand file tree Collapse file tree
src/main/java/jenkins/plugins/git Expand file tree Collapse file tree Original file line number Diff line number Diff line change 132132 <dependency >
133133 <groupId >org.jenkins-ci.plugins</groupId >
134134 <artifactId >credentials-binding</artifactId >
135+ <optional >true</optional >
135136 </dependency >
136137 <dependency >
137138 <groupId >org.jenkins-ci.plugins</groupId >
Original file line number Diff line number Diff line change 99import hudson .Launcher ;
1010import hudson .model .Run ;
1111import hudson .model .TaskListener ;
12- import hudson .Extension ;
1312import hudson .plugins .git .GitSCM ;
1413import hudson .plugins .git .GitTool ;
1514import hudson .util .ListBoxModel ;
2322import org .jenkinsci .plugins .gitclient .CliGitAPIImpl ;
2423import org .jenkinsci .plugins .gitclient .Git ;
2524import org .jenkinsci .plugins .gitclient .GitClient ;
25+ import org .jenkinsci .plugins .variant .OptionalExtension ;
2626import org .kohsuke .stapler .DataBoundConstructor ;
2727
2828import java .io .IOException ;
@@ -200,7 +200,7 @@ private String windowsArgEncodeFileName(String filename) {
200200
201201 // Mistakenly defined GitUsernamePassword in first release, prefer gitUsernamePassword as symbol
202202 @ Symbol ({"gitUsernamePassword" , "GitUsernamePassword" })
203- @ Extension
203+ @ OptionalExtension ( requirePlugins = "credentials-binding" )
204204 public static final class DescriptorImpl extends BindingDescriptor <StandardUsernamePasswordCredentials > {
205205
206206 @ NonNull
You can’t perform that action at this time.
0 commit comments