Receive input "The batch file cannot be found"

Hey everyone . I’m using Jenkins 2.361.2 for a personal project and when I run a job that calls a specialized internal program I receive input on the console “The batch file cannot be found” and my job is stuck and does not continue more . my agent is Windows Server 2022 version 21H2 anyone have a idea maybe?

Can you share your Jenkinsfile? It would be useful to see what you are trying to do.

we work with pipeline not with Jenkinsfile .

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.

its happend when i try to using bat command .

this is the screenshot of bug