'The term 'git' is not recognized as the name of a cmdlet, function,.. on Windows

I'm getting the below error

& : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Windows\TEMP\build_script770011073\script.ps1:217 char:3
+ & "git" "config" "-f" "C:\Gitlab-Runner\builds\CAxyhqeU\0\Main\aimoap 

enter image description here I have the below code that I'm using in my gitlab-ci.yml file

stages:
    - test

newman_tests:
    stage: test
    image:
        name: postman/newman
        entrypoint: [""]
    script:
        - newman --version
        - newman run ./Postman_Collections/APIAutomation.json

and my GITLAB URL is https://gitlab.shared.pub.tds.*****.com/ I have integrated my Postman collection with GITLAB using the Integration feature that Postman has provided.

What I'm missing over here? I don't think environment variables will come into the picture over here?

If it comes, then it will be for gitlab-runner and not GITLAB, right? Let me know if you need any more details.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source