Package hudson.scm

Class IntegritySCM

java.lang.Object
hudson.scm.SCM
hudson.scm.AbstractIntegritySCM
hudson.scm.IntegritySCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>, Serializable

public class IntegritySCM extends AbstractIntegritySCM implements Serializable
This class provides an integration between Hudson/Jenkins for Continuous Builds and PTC Integrity for Configuration Management
See Also:
  • Constructor Details

    • IntegritySCM

      @Deprecated public IntegritySCM(IntegrityRepositoryBrowser browser, String serverConfig, String userName, String password, String configPath, String includeList, String excludeList, boolean cleanCopy, String lineTerminator, boolean restoreTimestamp, boolean skipAuthorInfo, boolean checkpointBeforeBuild, String checkpointLabel, String alternateWorkspace, boolean fetchChangedWorkspaceFiles, boolean deleteNonMembers, int checkoutThreadPoolSize, String configurationName)
      Deprecated.
      Create a constructor that takes non-transient fields, and add the annotation @DataBoundConstructor to it. Using the annotation helps the Stapler class to find which constructor that should be used when automatically copying values from a web form to a class.
    • IntegritySCM

      @DataBoundConstructor public IntegritySCM(String serverConfig, String configPath, String configurationName)
  • Method Details

    • buildEnvVars

      public void buildEnvVars(hudson.model.AbstractBuild<?,?> build, Map<String,String> env)
      Adds Integrity CM Project info to the build variables
      Overrides:
      buildEnvVars in class hudson.scm.SCM
    • calcRevisionsFromBuild

      public hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
      Overridden calcRevisionsFromBuild function Returns the current project configuration which can be used to difference any future configurations
      Overrides:
      calcRevisionsFromBuild in class hudson.scm.SCM
      Throws:
      IOException
      InterruptedException
    • initializeCMProject

      public com.mks.api.response.Response initializeCMProject(hudson.EnvVars environment, String projectCacheTable) throws Exception
      Primes the Integrity Project metadata information
      Returns:
      response Integrity API Response
      Throws:
      Exception
    • checkout

      public void checkout(hudson.model.Run<?,?> run, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, File changeLogFile, hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
      Overridden checkout function This is the real invocation of this plugin. Currently, we will do a project info and determine the true nature of the project Subsequent to that we will run a view project command and cache the information on each member, so that we can execute project checkout commands. This obviously eliminates the need for a sandbox and can wily nilly delete the workspace directory as needed
      Overrides:
      checkout in class hudson.scm.SCM
      Throws:
      IOException
      InterruptedException
    • compareRemoteRevisionWith

      public hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.Job<?,?> job, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
      Overridden compareRemoteRevisionWith function that against the current to determine if the project has changed Loads up the previous project configuration and compares
      Overrides:
      compareRemoteRevisionWith in class hudson.scm.SCM
      Throws:
      IOException
      InterruptedException
    • getKey

      public String getKey()
      Overrides:
      getKey in class hudson.scm.SCM