| The example in the description has the same problem as the example on stackoverflow. Instead of creating a single entry for userremoteConfig with a value for URL and a value for credentialsID inside that entry, it creates two entries for userremoteConfig, one with URL and one with credentialsID. Don't do this:
userRemoteConfigs: [
[url: "${gitUrl}" ],
[credentialsId:'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx']
Instead, do this:
userRemoteConfigs: [
[url: "${gitUrl}" ,
credentialsId:'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx']
|