Setting up CI job but unable to get past mcdev auth #424
Replies: 2 comments 1 reply
-
Hi @jnguyenandersen - if you want to execute multiple commands in a 1-liner you need to combine them with && as far as I know. Try running your 5 commands manually one at a time to confirm. Also, after running mcdev init with your parameters, post the log file here. It shouldn't contain sensitive data unless $(credentialName) or BU names include information you don't want to share. You would need to remove those from the log manually before sharing it here |
Beta Was this translation helpful? Give feedback.
-
@JoernBerkefeld |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to set up a Azure DevOps CI job that runs a backup of SFMC.
I have a Powershell task that looks like this
npm install -g mcdev
mcdev init --y.credentialsName "$(credentialName)" --y.client_id "$(clientId)" --y.client_secret "$(clientSecret)" --y.auth_url "$(authURL)" --y.gitRemoteUrl "$(gitRemoteURL)" --y.accountid $(accountId)
mcdev retrieve AW/BU_Name_Here
git commit -m "Backup"
git push -u origin
There's a line of code here that's suppose to skip the interactive credentials prompt, but I'm still getting this error
16:11:20 error: .mcdev-auth.json not found. Please run 'mcdev init' to provide the missing credential details.
Beta Was this translation helpful? Give feedback.
All reactions