public BuildChooser getBuildChooser() { if (buildChooser==null) buildChooser = new DefaultBuildChooser(); return buildChooser; }
/** * A convenience constructor that sets everything to default. * * @param repositoryUrl Repository URL to clone from. * @throws java.io.IOException exception. */ public GitSCM(String repositoryUrl) throws IOException { this( DescriptorImpl.createRepositoryConfigurations(new String[]{repositoryUrl}, new String[]{null}, new String[]{null}), Collections.singletonList(new BranchSpec("")), new PreBuildMergeOptions(), false, Collections.<SubmoduleConfig>emptyList(), false, false, new DefaultBuildChooser(), null, null, false, null, null, null, null, false, false, null, null, false); }
/** * A convenience constructor that sets everything to default. * * @param repositoryUrl Repository URL to clone from. * @throws java.io.IOException exception. */ public GitSCM(String repositoryUrl) throws IOException, Descriptor.FormException { this( DescriptorImpl.createRepositoryConfigurations(new String[]{repositoryUrl}, new String[]{null}, new String[]{null}), Collections.singletonList(new BranchSpec("")), new PreBuildMergeOptions(), false, Collections.<SubmoduleConfig>emptyList(), false, false, new DefaultBuildChooser(), null, null, false, null, null, null, false, false, false, null, null, false, null, false); }
public BuildChooser getBuildChooser() { BuildChooser bc; BuildChooserSetting bcs = getExtensions().get(BuildChooserSetting.class); if (bcs!=null) bc = bcs.getBuildChooser(); else bc = new DefaultBuildChooser(); bc.gitSCM = this; return bc; }
buildChooser = new DefaultBuildChooser();
buildChooser = new DefaultBuildChooser();