Package com.nirima.jenkins.action

Examples of com.nirima.jenkins.action.RepositoryAction


            @Override
            public void buildEnvVars(Map<String, String> env) {
                super.buildEnvVars(env);    //To change body of overridden methods use File | Settings | File Templates.

                try {
                    RepositoryAction repositoryAction = upstream.getAction(build);
                    build.addAction(repositoryAction);
                    env.put("Jenkins.Repository", repositoryAction.getUrl().toExternalForm());
                    listener.getLogger().println("Setting environment Jenkins.Repository = " + repositoryAction.getUrl().toExternalForm());
                } catch (SelectionType.RepositoryDoesNotExistException x) {
                    listener.getLogger().println("You asked for an upstream repository, but it does not exist");
                    throw new RuntimeException(x);
                } catch (MalformedURLException e) {
                    listener.getLogger().println("Problem setting upstream repository URL");
View Full Code Here


        if( run == null )
            return;

        traverse(visitor, run);

        RepositoryAction repositoryAction = run.getAction(RepositoryAction.class);

        if( repositoryAction != null ) {
            if( repositoryAction instanceof ProjectRepositoryAction ) {
                final ProjectRepositoryAction projectRepositoryAction = (ProjectRepositoryAction) repositoryAction;
View Full Code Here

TOP

Related Classes of com.nirima.jenkins.action.RepositoryAction

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.