I am using gocd-server version from 
https://download.gocd.org/binaries/17.12.0-5626/generic/go-server-17.12.0-5626.zip

This is my config-repos xml inside cruise-config.xml.

<config-repos>
    <config-repo pluginId="yaml.config.plugin" id="pipeline-yaml-config-0">
      <git url="https://username:[email protected]/company/app.git"; 
branch="custom" />
    </config-repo>
</config-repos>

This config procudes the following stack trace in gocd-server. 
I have tried adding the second hash tag and this gets me past the database 
validation but then passes on the hash to git. 
I.e. https://username:[email protected]/company/app.git##custom  "no 
branch exists with name #custom"

Is this resolved in the new version of GoCd server 18 or is this an outstanding 
bug? 
I cannot seem to get around this problem any way with escaping and not being 
able to use a custom branch is causing headaches for us when migrating 
environments.
Thanks in advance to anyone who can help!


com.thoughtworks.go.config.exceptions.GoConfigInvalidMergeException: 1+ errors 
:: Error when processing params for 
'https://username:[email protected]/company/app.git#custom' used in field 
'url', # must be2018-01-30 09:29:28,785 WARN  [qtp391618063-20] 
PipelineSqlMapDao:489 - No pipelines found in Config, Skipping PIM loading.
 followed by a parameter pattern or escaped by another #;;
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.writeWithLock(GoFileConfigDataSource.java:343)
        at 
com.thoughtworks.go.config.CachedGoConfig.writeWithLock(CachedGoConfig.java:151)
        at 
com.thoughtworks.go.config.GoConfigDao.updateConfig(GoConfigDao.java:121)
        at 
com.thoughtworks.go.server.service.GoConfigService.updateConfig(GoConfigService.java:255)
        at 
com.thoughtworks.go.config.GoPartialConfig.updateConfig(GoPartialConfig.java:126)
        at 
com.thoughtworks.go.config.GoPartialConfig.onSuccessPartialConfig(GoPartialConfig.java:86)
        at 
com.thoughtworks.go.config.GoRepoConfigDataSource.notifySuccessListeners(GoRepoConfigDataSource.java:172)
        at 
com.thoughtworks.go.config.GoRepoConfigDataSource.onCheckoutComplete(GoRepoConfigDataSource.java:145)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.updateConfigurationFromCheckout(ConfigMaterialUpdater.java:106)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.onMessage(ConfigMaterialUpdater.java:87)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.onMessage(ConfigMaterialUpdater.java:38)
        at 
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:73)
        at 
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:53)
        at java.lang.Thread.run(Thread.java:748)
Caused by: com.thoughtworks.go.config.exceptions.GoConfigInvalidMergeException: 
1+ errors :: Error when processing params for 
'https://username:[email protected]/company/app.git#custom' used in field 
'url'STDERR: remote: Not Found
, # must be followed by a parameter pattern or escaped by another #;;
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlLoader.validateCruiseConfig(MagicalGoConfigXmlLoader.java:144)
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlLoader.preprocessAndValidate(MagicalGoConfigXmlLoader.java:119)
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlWriter.write(MagicalGoConfigXmlWriter.java:76)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.configAsXml(GoFileConfigDataSource.java:569)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.getUnmergedConfig(GoFileConfigDataSource.java:496)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.trySavingConfig(GoFileConfigDataSource.java:480)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.writeWithLock(GoFileConfigDataSource.java:338)
        ... 13 common frames omitted
2018-01-30 09:33:14,689 ERROR [112@MessageListener for ConfigMaterialUpdater] 
GoConfigDao:123 - Config update failed.
java.lang.RuntimeException: 1+ errors :: Error when processing params for 
'https://username:[email protected]/company/app.git#custom' used in field 
'url', # must be followed by a parameter pattern or escap
        at 
com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.initializeMaterialWithLatestRevision(MaterialDatabaseUpdater.java:121)
ed by another #;;
        at com.thoughtworks.go.util.ExceptionUtils.bomb(ExceptionUtils.java:40)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.writeWithLock(GoFileConfigDataSource.java:354)
        at 
com.thoughtworks.go.config.CachedGoConfig.writeWithLock(CachedGoConfig.java:151)
        at 
com.thoughtworks.go.config.GoConfigDao.updateConfig(GoConfigDao.java:121)
        at 
com.thoughtworks.go.server.service.GoConfigService.updateConfig(GoConfigService.java:255)
        at 
com.thoughtworks.go.config.GoPartialConfig.updateConfig(GoPartialConfig.java:126)
        at 
com.thoughtworks.go.config.GoPartialConfig.onSuccessPartialConfig(GoPartialConfig.java:86)
        at 
com.thoughtworks.go.config.GoRepoConfigDataSource.notifySuccessListeners(GoRepoConfigDataSource.java:172)
        at 
com.thoughtworks.go.config.GoRepoConfigDataSource.onCheckoutComplete(GoRepoConfigDataSource.java:145)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.updateConfigurationFromCheckout(ConfigMaterialUpdater.java:106)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.onMessage(ConfigMaterialUpdater.java:87)
        at 
com.thoughtworks.go.server.materials.ConfigMaterialUpdater.onMessage(ConfigMaterialUpdater.java:38)
        at 
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.runImpl(JMSMessageListenerAdapter.java:73)
        at 
com.thoughtworks.go.server.messaging.activemq.JMSMessageListenerAdapter.run(JMSMessageListenerAdapter.java:53)
        at java.lang.Thread.run(Thread.java:748)
Caused by: com.thoughtworks.go.config.exceptions.GoConfigInvalidMergeException: 
1+ errors :: Error when processing params for 
'https://username:[email protected]/company/app.git#custom' used in field 
'url'2018-01-30 09:30:13,679 WARN  [112@MessageListener for 
ConfigMaterialUpdater] ConfigMaterialUpdater:78 - [Config Material Update] 
Cannot update configuration part because material update has failed. Reason: 
Failed to run git clone command S, # must be followed by a parameter pattern or 
escaped by another #;;
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.writeWithLock(GoFileConfigDataSource.java:343)
        ... 13 common frames omitted
Caused by: com.thoughtworks.go.config.exceptions.GoConfigInvalidMergeException: 
1+ errors :: Error when processing params for 
'https://username:[email protected]/company/app.git#custom' used in field 
'url'2018-01-30 09:30:23,440 WARN  [qtp391618063-20] PipelineSqlMapDao:489 - No 
pipelines found in Config, Skipping PIM loading.
, # must be followed by a parameter pattern or escaped by another #;;
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlLoader.validateCruiseConfig(MagicalGoConfigXmlLoader.java:144)
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlLoader.preprocessAndValidate(MagicalGoConfigXmlLoader.java:119)
        at 
com.thoughtworks.go.config.MagicalGoConfigXmlWriter.write(MagicalGoConfigXmlWriter.java:76)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.configAsXml(GoFileConfigDataSource.java:569)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.getUnmergedConfig(GoFileConfigDataSource.java:496)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.trySavingConfig(GoFileConfigDataSource.java:480)
        at 
com.thoughtworks.go.config.GoFileConfigDataSource.writeWithLock(GoFileConfigDataSource.java:338)
        ... 13 common frames omitted



-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to