Docker->Maven->Failsafe->Surefire starting fork fails with “The forked VM terminated without properly saying goodbye. VM crash or System.exit called?”

前端 未结 8 2021
生来不讨喜
生来不讨喜 2020-12-30 04:51

As per title: I\'m trying to run Maven automated test from Jenkins slave that is containerized and after battling this for a week now I\'m running out of ideas. It works as

8条回答
  •  萌比男神i
    2020-12-30 05:25

    I have encountered the same issue in the following environment: docker image from alpine 3.7, maven surefire plugin version 2.21.0.

    The root cause of that is described at SUREFIRE-1422: surefire tries to use ps -p to check forked process. The solution for me was to add procps:

    RUN apk add --no-cache procps
    

提交回复
热议问题