hudson.plugins.bazaar
Class BazaarSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.plugins.bazaar.BazaarSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, Serializable

public class BazaarSCM
extends hudson.scm.SCM
implements Serializable

Bazaar SCM.

Author:
Trond Norbye, Stewart Smith, Monty Taylor
See Also:
Serialized Form

Nested Class Summary
static class BazaarSCM.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
BazaarSCM(String source, boolean cleantree, BazaarRepositoryBrowser browser)
           
BazaarSCM(String source, boolean cleantree, BazaarRepositoryBrowser browser, boolean checkout)
           
 
Method Summary
 void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,String> env)
           
 hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.TaskListener listener)
           
 boolean checkout(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changelogFile)
           
protected  hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState baseline)
           
 hudson.scm.ChangeLogParser createChangeLogParser()
           
 BazaarRepositoryBrowser getBrowser()
           
 BazaarSCM.DescriptorImpl getDescriptor()
           
 String getSource()
          Gets the source repository path.
 boolean isCheckout()
          True if we want to use checkout --lightweight
 boolean isCleanTree()
          True if we want clean check out each time.
 boolean requiresWorkspaceForPolling()
           
 
Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, all, createEmptyChangeLog, getApi, getEffectiveBrowser, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, nullify, poll, pollChanges, processWorkspaceBeforeDeletion, supportsPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BazaarSCM

@DataBoundConstructor
public BazaarSCM(String source,
                                      boolean cleantree,
                                      BazaarRepositoryBrowser browser,
                                      boolean checkout)

BazaarSCM

public BazaarSCM(String source,
                 boolean cleantree,
                 BazaarRepositoryBrowser browser)
Method Detail

getSource

public String getSource()
Gets the source repository path. Either URL or local file path.

Returns:

isCleanTree

public boolean isCleanTree()
True if we want clean check out each time. This means deleting everything in the workspace

Returns:

isCheckout

public boolean isCheckout()
True if we want to use checkout --lightweight

Returns:

getBrowser

@Exported
public BazaarRepositoryBrowser getBrowser()
Overrides:
getBrowser in class hudson.scm.SCM

compareRemoteRevisionWith

protected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
                                                             hudson.Launcher launcher,
                                                             hudson.FilePath workspace,
                                                             hudson.model.TaskListener listener,
                                                             hudson.scm.SCMRevisionState baseline)
                                                      throws IOException,
                                                             InterruptedException
Specified by:
compareRemoteRevisionWith in class hudson.scm.SCM
Throws:
IOException
InterruptedException

requiresWorkspaceForPolling

public boolean requiresWorkspaceForPolling()
Overrides:
requiresWorkspaceForPolling in class hudson.scm.SCM

calcRevisionsFromBuild

public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.Launcher launcher,
                                                          hudson.model.TaskListener listener)
                                                   throws IOException,
                                                          InterruptedException
Specified by:
calcRevisionsFromBuild in class hudson.scm.SCM
Throws:
IOException
InterruptedException

checkout

public boolean checkout(hudson.model.AbstractBuild<?,?> build,
                        hudson.Launcher launcher,
                        hudson.FilePath workspace,
                        hudson.model.BuildListener listener,
                        File changelogFile)
                 throws IOException,
                        InterruptedException
Specified by:
checkout in class hudson.scm.SCM
Throws:
IOException
InterruptedException

buildEnvVars

public void buildEnvVars(hudson.model.AbstractBuild<?,?> build,
                         Map<String,String> env)
Overrides:
buildEnvVars in class hudson.scm.SCM

createChangeLogParser

public hudson.scm.ChangeLogParser createChangeLogParser()
Specified by:
createChangeLogParser in class hudson.scm.SCM

getDescriptor

public BazaarSCM.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM


Copyright © 2004-2013. All Rights Reserved.