add error return in ci script for pipelines