If I understand your question correctly (it severely lacks details), everything works fine on your local machine, but does not work when running on Jenkins.
Don't you have a little bit more stack trace to provide ?
There could be so many possible reasons. Maybe on Jenkins, non-Java files are not being copied correctly to target/test-classes
. Check whether the pom.xml
on Jenkins is not behaving differently for example because of a Maven profile. You should work with your Jenkins admin / CI team to solve this.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…