У меня есть этап в моем Jenkinsfile, который выглядит следующим образом:
stage('Pull Source Code') {
steps {
script {
git branch: "master",
credentialsId: 'myCredentialId',
url: "${GIT_URL}"
}
sh 'git submodule update --recursive'
}
}
Я хочу предоставить учетные данные для шага обновления подмодуля git git, поскольку он выдает следующую ошибку:
+ git submodule update --recursive
Cloning into 'submodule-destination-folder'...
fatal: could not read Username for 'https://tfsgit.mycompany.com': No such device or address
fatal: clone of 'https://tfsgit.mycompany.com/submodule-repo' into submodule path 'submodule-destination-folder' failed
Есть ли способ предоставить учетные данные Jenkins для обновления подмодуля git?