Annotation Interface GlobalRule


@Retention(RUNTIME) @Target(TYPE) @Documented @Indexed public @interface GlobalRule
TestRule to be applied on all tests globally.

Annotate TestRule to have it run for every test. See RuleAnnotation optional rule registration.

Author:
ogondza
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Optional ordering among rules.
  • Element Details

    • priority

      int priority
      Optional ordering among rules.

      Annotation with priority >= 0 are guaranteed to be run after Jenkins is up. Negative priorities are run before startup on best effort basis. (It might not happen before for ExistingJenkinsController, PooledJenkinsController and possibly others).

      Annotations that skips execution are encouraged to run before Jenkins is booted up to save time. Note, that these implementations can not inject Jenkins for obvious reasons.

      Default:
      0