I have a JUnit test file for my code that reads an xml file and converts it to string:
String xml = new String(Files.readAllBytes(Paths.get("src\\test\\resources\\testfile.xml"))); The test runs and passes locally, but when I run a Jenkins build, it fails with java.nio.file.NoSuchFileException: src\test\resources\testfile.xml
Do I need to change my file path when pushing?