1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-12-13 11:27:08 +02:00

Переопределение данных для пулинга только если заполнен lfsRepoUri

This commit is contained in:
Nikita Gryzlov 2020-10-30 09:48:24 +03:00 committed by kuzja086
parent 82c5147177
commit e5537b7eeb

View File

@ -99,6 +99,10 @@ class EdtTransform implements Serializable {
List<UserRemoteConfig> userRemoteConfigs = new ArrayList<>(scm.getUserRemoteConfigs())
if (gitSCMOptions.lfsRepoURI.isEmpty()) {
return scm
}
def userRemoteConfig = userRemoteConfigs.find { it.url == gitSCMOptions.lfsRepoURI }
boolean needToUpdateUserRemoteConfigs
if (userRemoteConfig == null) {