I try to use jenkins to run a simple batch command from a jenkinsfile in my git repo:
...
steps {
script{
bat "git status"
}
}
...
but it gives me always this error:
[Pipeline] script
[Pipeline] {
[Pipeline] bat
13:27:41 'cmd' n'est pas reconnu en tant que commande interne
13:27:41 ou externe, un programme ex‚cutable ou un fichier de commandes.
[Pipeline] }
[Pipeline] // script
In english : cmd is not recognized as an internal or external command, operable program or batch file.
I checked that jenkins was executed on the right windows node.
Have you any clue how to solve this ? thanks