Package hudson.scm

Examples of hudson.scm.SubversionSCM$SvnInfo


  public void testRevisionParameter() throws Exception {
    FreeStyleProject p1 = createFreeStyleProject();
    FreeStyleProject p2 = createFreeStyleProject();
    p2.setQuietPeriod(1);

    p1.setScm(new SubversionSCM(
          "https://svn.jenkins-ci.org/trunk/hudson/test-projects/trivial-ant@13000"));

    p2.setScm(new SubversionSCM(
          "https://svn.jenkins-ci.org/trunk/hudson/test-projects/trivial-ant"));

    p1.getPublishersList().add(
        new BuildTrigger(new BuildTriggerConfig(p2.getName(), ResultCondition.SUCCESS,
            new SubversionRevisionBuildParameters())));
View Full Code Here


            remote.append('@').append(((SCMRevisionImpl) revision).getRevision());
        } else if (remote.indexOf("@") != -1) {
            // name contains an @ so need to ensure there is an @ at the end of the name
            remote.append('@');
        }
        return new SubversionSCM(remote.toString(), credentialsId, ".");
    }
View Full Code Here

    public String getUrl() {
        return url;
    }

    @Override protected SCM createSCM() {
        return new SubversionSCM(url); // TODO maybe default to UpdateWithCleanUpdater, etc.
    }
View Full Code Here

    private void fillInfo( Entry entry, SvnOperationFactory operationFactory, StatusHandler statusHandler ) throws SVNException {
        if ( statusHandler.repositoryPath == null || statusHandler.repositoryPath.length() == 0 ) {
            SvnGetInfo infoOperation = operationFactory.createGetInfo();
            infoOperation.setSingleTarget( SvnTarget.fromFile( entry.getPath() ) );
            SvnInfo infoResult = infoOperation.run();
            statusHandler.repositoryRoot = infoResult.getRepositoryRootUrl().toString();
            statusHandler.repositoryPath = infoResult.getUrl().toString().substring( statusHandler.repositoryRoot.length() + 1 );
        }
    }
View Full Code Here

TOP

Related Classes of hudson.scm.SubversionSCM$SvnInfo

Copyright © 2018 www.massapicom. 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.