Loading JenkinsRule from pre-defined xml files?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Loading JenkinsRule from pre-defined xml files?

Michael Carter
Any docs on how to get something like this working? 

    @LocalData("Jenkins-Enabled")
    @ClassRule public static JenkinsRule jenkinsRule = new JenkinsRule();

Basically, I want to only start one server for this test, and I want to use the same shared config.xml and data.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/914895a3-f12d-4660-8e0c-712c92a3f3c6n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Loading JenkinsRule from pre-defined xml files?

Tim Jacomb

On Wed, 7 Oct 2020 at 15:01, Michael Carter <[hidden email]> wrote:
Any docs on how to get something like this working? 

    @LocalData("Jenkins-Enabled")
    @ClassRule public static JenkinsRule jenkinsRule = new JenkinsRule();

Basically, I want to only start one server for this test, and I want to use the same shared config.xml and data.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/914895a3-f12d-4660-8e0c-712c92a3f3c6n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH-3BidOz2h7VVT%2BjA%2BaX1z0utvKNCqD4wUpHpjDeRPW9Nufwg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Loading JenkinsRule from pre-defined xml files?

Jesse Glick-4
Just merge everything into one `@Test`. You can use `@Rule
ErrorCollector` to produce multiple independent results for clarity.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr04%2Bc9uAdv%3DY2rEw9HY%2BV%3DMppn6ULi5dQAr6889fNOaoA%40mail.gmail.com.