Package hudson.plugins.scm_sync_configuration

Examples of hudson.plugins.scm_sync_configuration.SCMManipulator.checkout()


    protected void verifyCurrentScmContentMatchesHierarchy(File hierarchy, boolean match) throws ComponentLookupException, PlexusContainerException, IOException{
    SCMManipulator scmManipulator = createMockedScmManipulator();
   
    // Checkouting scm in temp directory
    File checkoutDirectoryForVerifications = createTmpDirectory(this.getClass().getSimpleName()+"_"+testName.getMethodName()+"__verifyCurrentScmContentMatchesHierarchy");
    scmManipulator.checkout(checkoutDirectoryForVerifications);
        List<String> diffs = DirectoryUtils.diffDirectories(checkoutDirectoryForVerifications, hierarchy,
                getSpecialSCMDirectoryExcludePattern(), true);

    FileUtils.deleteDirectory(checkoutDirectoryForVerifications);
   
View Full Code Here


    sscBusiness.synchronizeAllConfigs(ScmSyncConfigurationPlugin.AVAILABLE_STRATEGIES);
   
    // Let's checkout current scm view ... and commit something in it ...
    SCMManipulator scmManipulator = createMockedScmManipulator();
    File checkoutDirectoryForVerifications = createTmpDirectory(this.getClass().getSimpleName()+"_"+testName.getMethodName()+"__tmpHierarchyForCommit");
    scmManipulator.checkout(checkoutDirectoryForVerifications);
    final File hello1 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/jobs/hello.txt");
    final File hello2 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/hello2.txt");
    FileUtils.fileAppend(hello1.getAbsolutePath(), "hello world !");
    FileUtils.fileAppend(hello2.getAbsolutePath(), "hello world 2 !");
    scmManipulator.addFile(checkoutDirectoryForVerifications, "jobs/hello.txt");
View Full Code Here

    sscBusiness.synchronizeAllConfigs(ScmSyncConfigurationPlugin.AVAILABLE_STRATEGIES);
   
    // Let's checkout current scm view ... and commit something in it ...
    SCMManipulator scmManipulator = createMockedScmManipulator();
    File checkoutDirectoryForVerifications = createTmpDirectory(this.getClass().getSimpleName()+"_"+testName.getMethodName()+"__tmpHierarchyForCommit");
    scmManipulator.checkout(checkoutDirectoryForVerifications);
    final File hello1 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/jobs/hello.txt");
    final File hello2 = new File(checkoutDirectoryForVerifications.getAbsolutePath()+"/hello2.txt");
    FileUtils.fileAppend(hello1.getAbsolutePath(), "hello world !");
    FileUtils.fileAppend(hello2.getAbsolutePath(), "hello world 2 !");
    scmManipulator.addFile(checkoutDirectoryForVerifications, "jobs/hello.txt");
View Full Code Here

    sscBusiness.synchronizeAllConfigs(ScmSyncConfigurationPlugin.AVAILABLE_STRATEGIES);
   
    // Let's checkout current scm view ... and commit something in it ...
    SCMManipulator scmManipulator = createMockedScmManipulator();
    File checkoutDirectoryForVerifications = createTmpDirectory(this.getClass().getSimpleName()+"_"+testName.getMethodName()+"__tmpHierarchyForCommit");
    scmManipulator.checkout(checkoutDirectoryForVerifications);
   
    verifyCurrentScmContentMatchesCurrentHudsonDir(true);
   
    final File configFile = new File(checkoutDirectoryForVerifications.getAbsolutePath() + "/config.xml");
    FileUtils.fileAppend(configFile.getAbsolutePath(), "toto");
View Full Code Here

    sscBusiness.synchronizeAllConfigs(ScmSyncConfigurationPlugin.AVAILABLE_STRATEGIES);
   
    // Let's checkout current scm view ... and commit something in it ...
    SCMManipulator scmManipulator = createMockedScmManipulator();
    File checkoutDirectoryForVerifications = createTmpDirectory(this.getClass().getSimpleName()+"_"+testName.getMethodName()+"__tmpHierarchyForCommit");
    scmManipulator.checkout(checkoutDirectoryForVerifications);

        // Verifying there isn't any difference between hudson and scm repo once every file are synchronized
    verifyCurrentScmContentMatchesCurrentHudsonDir(true);
   
    final File addedFile = new File(checkoutDirectoryForVerifications.getAbsolutePath() + "/myConfigFile.xml");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.