AWS code commit repo url

We are trying to checkout aws code commit repo using Jenkins Pipeline SCM. All the prerequisities are followed and looks good. But still encountering below error. Unfortunatly the same url and login credentials are working fine on our test instance. Jenkinsfile is in subfolder.

searching the forums for "not in a git directory" has turned up a number of threads.

Please make sure you search existing topics before open a new one.