Authenticate error with CI CD for saleforce

Viewed 17

I try to setup CI/CD for my salesforce project on bitbucket. On bitbucket pipeline I run this command

sfdx force:auth:jwt:grant --username $DEV_USERNAME --clientid $DEV_CLIENTID --jwtkeyfile jwt/server.key --instanceurl=$DEV_URL --setalias=vin3sDev

It shows me this error.

ERROR:  This org appears to have a problem with its OAuth configuration. Reason: invalid_grant - audience is invalid 

I tried on my local machine, it's Successfully authorized.

What's the difference? And how to fix

Thanks in advance.

0 Answers
Related