Sorry I used the shortcut when I was describing the issue. Multibranch job is defined as yml file which is pick up as another job with define git user. -> In that yml file, I have "script-path" where is a path to my Jenkinsfile with pipeline script and scm where script is stored. Here is no problem. Everything is a load to Jenkins so I can see it in GUI my job e.g Problem is when a script from a branch (so from Jenkins file) here named as "master" try to execute step where I am checking out info from git with all necessary credentials in the script on a windows machine. It's falling with the error described in the issue. With Linux it's passing without problem (its parallel job for Windows and Linux), as well there is no problem if pipeline job is running as a separate job. If I want to avoid failure with git credentials I have to specify credentials in multibranch configuration Which is pointless because I specified credentials in the Jenkins file (branch script named master on the previous script) and it should use that one from "nested" job. I don't know why but for linux it's working out of the box and windows is falling. If I am running this script as separate pipeline job(New Item ->Pipeline) it's working and read credentials correctly ( steps { //git credentialsId: etc } ) This is the issue. |