Hi,
I am following your vedios on Youtube. I am facing a problem. 'git' is not recognized as an internal or external command when using pipeline. But git command is ok when it is running in CMD window.
I already add path of git.exe in global tool configuration. Make it point to ...Bin\git.exe.
I am using window 10. Please advise. Thank you!
This is pipeline script:
pipeline {
agent any
stages {
stage('clone repo') {
steps {
bat "git clone https://github.com/pknowledge/my-app.git"
bat "mvn clean -f my-app"
}
}
stage('Test') {
steps {
bat "mvn test -f my-app"
}
}
stage('Deploy') {
steps {
bat "mvn package -f my-app"
}
}
}
}