TransWikia.com

Jenkins auto generates wrong config for composer

Stack Overflow Asked by tiny sunlight on November 29, 2021

Jenkins generated wrong config for composer in /var/lib/jenkins/.composer/config.json.

Jenkins will generate it again after I recorrect it.

I can’t find any relative config in Jenkins.

Where can I setup it in Jenkins?

One Answer

Check the diff of config.json between

  • your good version after manual fix
  • the wrong version as regenerated by Jenkins

That will tell you exactly what is changing (for example, it could regenerate OAuth credentials)

Then check which php-related plugins you have installed (as described in "PHP Continuous Integration Template using Composer and JenkinsCI"), like phing, Ruby, RVM, PHP and Rake.

See if one of them has a setting matching what is changed automatically: that would explain why your manual change is reversed.

Answered by VonC on November 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP