jenkinsci / jenkinsci/support-core-plugin
[JENKINS-32110] networkInterface.md not correctly generated with Java 6
- Dominant language
- Java
- Stars
- 19
- Forks
- 77
- Avg merge
- 17h 53m
- Merged PRs (30d)
- 3
Description
In the file networkInterface.md we have
N/A: No connection to node, or no cache.
Source of the issue:
support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java:[122,56]
getIndex() is not public in java.net.NetworkInterface; cannot be accessed from outside package
java.net.NetworkInterface#getIndex() is Java 7+
Several issues :
- https://jenkins.ci.cloudbees.com/job/plugins/job/support-core-plugin is building with J7

- animal sniffer is configured to check with java 5 ... but it isn't called by default
If we remove this line the file is correctly generated
---
Originally reported by
aheritier, imported from: networkInterface.md not correctly generated with Java 6
schristou
Raw content of original issue
In the file networkInterface.md we have
N/A: No connection to node, or no cache.Source of the issue:
support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java:[122,56]
getIndex() is not public in java.net.NetworkInterface; cannot be accessed from outside package
java.net.NetworkInterface#getIndex() is Java 7+
Several issues :
- https://jenkins.ci.cloudbees.com/job/plugins/job/support-core-plugin is building with J7

- animal sniffer is configured to check with java 5 ... but it isn't called by default
If we remove this line the file is correctly generated
Contributor guide
Research direction
Start in support-core-plugin/src/main/java/com/cloudbees/jenkins/support/impl/NetworkInterfaces.java at line 122 and inspect the use of NetworkInterface#getIndex(), which is unavailable in Java 6. Reproduce networkInterface.md generation with Java 6 and confirm the output no longer falls back to “N/A: No connection to node, or no cache.” Done means the file is generated correctly on Java 6.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100