Hi,
I’m trying to setup a pipeline for a Salesforce DX project. I’ve followed this guide online and it’s been pretty good so far: https://www.ktema.org/2018/03/17/circleci-sfdx-multiple-org-shapes/.
now what I’m trying to do is paramterize my build such that a certain command is run with specific credentials based on the branch I’m on. This is what I have so far:
- run:
name: isProd
command: |
if [[ "$CIRCLE_BRANCH" == "master" ]];
then
echo "master"
fi
- run:
name: isDev
command: |
if[[ "$CIRCLE_BRANCH" == "develop" ]];
then
echo "dev"
fi
Problem is - i get a non zero exit code when one of these is not true, causing the build to fail. Any ideas?