Skip to content

'git' is not recognized as an internal or external command #1

Description

@profangong

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"
}
}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions