You need to sign in to do that
Don't have an account?

Azure deployment failure
I have an pipeline running in Azure with a yaml file.
In one of our steps, we run the Salesforce deployment (validation only), but whether it is succsesful or not, the yaml file performs as a successful deployment.
I'm trying to catch this deployment now into a string, but unsure/unable to do a check to see if there's an error:
The above always writes "no error found!"
Any advice?
In one of our steps, we run the Salesforce deployment (validation only), but whether it is succsesful or not, the yaml file performs as a successful deployment.
if [ $(setvarStep.PullRequest) = 'true' ] then echo 'DevOps Message -- Validation in Progress - Non Feature branch behavior' npx sfdx force:source:deploy --checkonly --testlevel $(setvarStep.SalesforceTestLevel) --sourcepath $(salesforce.sourcepath) --targetusername $(salesforce.connectedApp.Alias) fi
I'm trying to catch this deployment now into a string, but unsure/unable to do a check to see if there's an error:
if [ $(setvarStep.PullRequest) = 'true' ] then echo 'DevOps Message -- Validation in Progress - Non Feature branch behavior' sfdxresult=$(npx sfdx force:source:deploy --checkonly --testlevel $(setvarStep.SalesforceTestLevel) --sourcepath $(salesforce.sourcepath) --targetusername $(salesforce.connectedApp.Alias)) if ($deploymentresult -like "*Component Failures*") then echo "found the error!" else echo "no error found!" fi fi
The above always writes "no error found!"
Any advice?

Above if block should be: