Package com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.start()


        GerritTrigger trigger = new GerritTrigger(null, null, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                silentMode, silentStart, true, false, false, "", "", "", "", "", "", "", null,
                PluginImpl.DEFAULT_SERVER_NAME, null, triggerOnEvents, false, false, "", null);

        if (project != null) {
            trigger.start(project, true);
            try {
                project.addTrigger(trigger);
            } catch (IOException e) {
                // for the sake of testing this should be ok
                throw new RuntimeException(e);
View Full Code Here


    private void changeSelectedServerInJobs(String oldName) {
        for (AbstractProject job : PluginImpl.getInstance().getConfiguredJobs(oldName)) {
            GerritTrigger trigger = (GerritTrigger)job.getTrigger(GerritTrigger.class);
            try {
                trigger.setServerName(name);
                trigger.start(job, false);
                job.addTrigger(trigger);
                job.save();
            } catch (IOException e) {
                logger.error("Error saving Gerrit Trigger configurations for job [" + job.getName()
                        + "] after Gerrit server has been renamed from [" + oldName + "] to [" + name + "]");
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.