Jenkins Job Running Successfully only on the first Time

I am running Job through Git repo & when run for first time it is success , and then it always give error

Hi there,

“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.

  1. what did you try? (Code samples, command lines, screenshots, videos, etc)
  2. what did happen? (Error messages, description, outputs, stuff)
  3. what did you expect to happen?

Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.

1 Like

Your output says that testing-results.xml was last modified before this build started. Ignoring it. Maybe look into why TestNG isn’t writing the file. I am not familiar with TestNG maybe it refuses to overwrite an existing file?