@Override
    public void afterAll(ExtensionContext extensionContext) throws Exception {
        Class<?> clazz = extensionContext.getRequiredTestClass();
        Predicate<Field> predicate = (field -> ModifierSupport.isStatic(field)
                && JenkinsConfiguredWithCodeRule.class.isAssignableFrom(field.getType()));
        Field field = findFields(clazz, predicate, HierarchyTraversalMode.BOTTOM_UP).stream()
                .findFirst()
                .orElse(null);
        if (field != null) {
            final JenkinsConfiguredWithCodeRule rule =
                    extensionContext.getStore(NAMESPACE).get(KEY, JenkinsConfiguredWithCodeRule.class);
            if (rule == null) {
                return;
            }
            rule.after();
        }
    }
JUnit 5 extension providing {@link JenkinsConfiguredWithCodeRule} integration.

@see WithJenkinsConfiguredWithCode
test-harness/src/main/java/io/jenkins/plugins/casc/misc/junit/jupiter/JenkinsConfiguredWithCodeExtension.java