@Override
    public Object resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
            throws ParameterResolutionException {

        final JenkinsConfiguredWithCodeRule rule = extensionContext
                .getStore(NAMESPACE)
                .getOrComputeIfAbsent(
                        KEY,
                        key -> new JUnit5JenkinsConfiguredWithCodeRule(
                                extensionContext,
                                extensionContext.getRequiredTestMethod().getDeclaredAnnotations()),
                        JenkinsConfiguredWithCodeRule.class);

        try {
            rule.before();
            return rule;
        } catch (Throwable t) {
            throw new ParameterResolutionException(t.getMessage(), t);
        }
    }
JUnit 5 extension providing {@link JenkinsConfiguredWithCodeRule} integration.

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