Package hudson.plugins.emailext

Examples of hudson.plugins.emailext.ExtendedEmailPublisherContext


    }
   
    @Test
    public void testRuntimeMacro() throws IOException, InterruptedException {
        RuntimeContent content = new RuntimeContent("Hello, world");
        assertEquals("Hello, world", ContentBuilder.transformText("${RUNTIME}", new ExtendedEmailPublisherContext(publisher, build, j.createLocalLauncher(), listener), Collections.singletonList((TokenMacro)content)));
    }
View Full Code Here


    public static String transformText(String origText, ExtendedEmailPublisher publisher, AbstractBuild<?, ?> build, BuildListener listener) {
        return transformText(origText, publisher, build, null, listener);
    }
   
    public static String transformText(String origText, ExtendedEmailPublisher publisher, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) {
        ExtendedEmailPublisherContext context = new ExtendedEmailPublisherContext(publisher, build, null, listener);
        return transformText(origText, context, null);
    }
View Full Code Here

        addMockTestResultAction(build6, build6, build6);
        checkRecipients(build6, "A", "K", "U", "W");
    }

    private static void checkRecipients(final Build build, final String... inAuthors) throws AddressException {
        ExtendedEmailPublisherContext context = new ExtendedEmailPublisherContext(null, build, new Launcher.LocalLauncher(StreamTaskListener.fromStdout()), new StreamBuildListener(System.out, Charset.defaultCharset()));
        EnvVars envVars = new EnvVars();
        Set<InternetAddress> to = new HashSet<InternetAddress>();
        Set<InternetAddress> cc = new HashSet<InternetAddress>();
        Set<InternetAddress> bcc = new HashSet<InternetAddress>();
        FailingTestSuspectsRecipientProvider provider = new FailingTestSuspectsRecipientProvider();
View Full Code Here

TOP

Related Classes of hudson.plugins.emailext.ExtendedEmailPublisherContext

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.