SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
361 stars 242 forks source link

Not able to connect multiple Org using Codeship and Circle CI #404

Closed LovelIncapsulate closed 4 years ago

LovelIncapsulate commented 7 years ago

As shown in the image I need to automated code flow from a different branch to different orgs how I can achieve that. For now, I can use only one variable CUMULUSCI_CONNECTED_API, how can we use the same with the different name and diffrent values.

image

jlantz commented 7 years ago

Typically you only need a single connected app for all the orgs you want to connect. If you need to deploy to different orgs, you'd just add multiple CUMULUSCI_ORG_orgname variables. Then, the orgs would be available by their orgname.

LovelIncapsulate commented 7 years ago

Hey then what is the significance of CUMULUCSCI_CONNECTED_APP, and I am getting error of incorrect token when I try to connect different orgs of salesforce with same of CUMULUCSCI_CONNECTED_APP value.

denverquentin commented 6 years ago

Hi @jlantz, I'm trying to set the CUMULUSCI_CONNECTED_APP and CUMULUSCI_ORG_feature environment variables for use in Codeship and I can't find the JSON keys/values that I need to set to authenticate. Can you point me in the right direction?

swagattalsania commented 6 years ago

Hi @denverquentin. Which OS are you using? If you are on MAC simply type cci org connected_app and cci org info feature --json to get the required JSON values. I do not believe the first command uses a --json option so you will have to manually convert the output to a valid JSON. Somewhat like {"callback_url": "http://localhost:8080/callback", "client_id": "Test3MVG9zlTNB8o8BAK6fTCHmkWUsPOvFBRHAC.tsH8pfjl9klgCYFoxeTh", "client_secret": "24542686485659057" }

On Windows, simply run both the commands without the --json option and it should give you the expected output.

You can find more information here.

Hope this helps.