Intermittent NoClassDefFoundError when running a maven/surefire build in jenkins

后端 未结 4 1793
天涯浪人
天涯浪人 2021-02-04 06:24

We are building a large multi module Maven project on Jenkins, including running a large number of unit test.

Once every few builds the build fails on NoClassDefF

4条回答
  •  无人共我
    2021-02-04 06:41

    If all your builds use the same workspace, and if its possible for several builds to run concurrently or overlap in any way, it's possible that the "clean" action is wiping out required build artifacts while another build is trying to use them.

    If that's what's happening, the fix would be to have each build run use its own workspace.

提交回复
热议问题