Skip to content

Commit

Permalink
Add a test-commit which adds test-log-output
Browse files Browse the repository at this point in the history
This is used to verify which version of ASM is loaded.

See comments on 90da02b for the discussion.
  • Loading branch information
centic9 committed Dec 11, 2023
1 parent a2600f5 commit a15e0fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/hudson/plugins/jacoco/JacocoPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,11 @@ public void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull

final PrintStream logger = taskListener.getLogger();
logger.println("[JaCoCo plugin] Collecting JaCoCo coverage data...");
logger.println("Class: " + org.objectweb.asm.Type.class);
logger.println("Loader: " + org.objectweb.asm.Type.class.getClassLoader());
logger.println("URL: " + org.objectweb.asm.Type.class.getClassLoader().getResource("org.objectweb.asm.Type.class"));
logger.println("Opcodes: " + org.objectweb.asm.Opcodes.V22);

Jenkins instance = Jenkins.getInstanceOrNull();
if (instance != null) {
Plugin plugin = instance.getPlugin("jacoco");
Expand Down

0 comments on commit a15e0fd

Please sign in to comment.