Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to make calls to sandbox instead of production/developer org #271

Open
mohamedaminem5 opened this issue May 4, 2016 · 5 comments

Comments

@mohamedaminem5
Copy link

Hello all,

The addcredential command supports only calls to production/developer orgs. Is there a way to configure it to make calls to sandbox on link 'test.salesforce.com'?

Regards

@naverus
Copy link
Contributor

naverus commented May 4, 2016

Please take a look on this link.

http://fundacionjala.github.io/enforce-gradle-plugin/docs/credentials/

@naverus
Copy link
Contributor

naverus commented May 4, 2016

JIC this is the parameter and its description:

-PsfdcType

Login type (login/test/instance, by default login)

@mohamedaminem5
Copy link
Author

Thanks for the reply. For some reason, it does not create the credentials to sandbox, instead it creates to production/developer. I launch the following commands:

  • gradle addCredential -Pid=id1 -Pusername=username1 -Ppassword=password1 -Ptoken=123456789 -PsfdcType=test.
    The build is successful. Then I launch the following command:
  • gradle showCredentials and it shows me the following information:
    Id: id
    User name: username1
    Type: Production/Developer

The same outcome I get when I launch the command updateCredential.

I am using Gradle 2.5 without build number, Groovy 2.3.10, Ant 1.9.3, JVM 1.7.0_75

Thanks in advance.

@naverus
Copy link
Contributor

naverus commented May 5, 2016

ouch!... Feel free to edit the credentials.dat file that you have in your os user's home, this file contains all credentials information.

@ziur
Copy link
Contributor

ziur commented May 5, 2016

@mohamedaminem5, it seems something is wrong in the addCredential or showCredential tasks, could you please confirm if the sfdcType property in your credentials.dat file has the "test" value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants