I'm using pipelines in a PHP (laravel) project.
I need to run phpunit and after phpunit I really need to update a file in the repository (because I need to have a sequencial number in one parameter of tests).
I have my bitbucket-pipelines.yml like the photo.
I tried to use git checkout develop and send the new env file, but the problem it´s not exactly what I need:
- If phpunit fails (with set +e parameter) it will mark the build as successful
- If phpunit fails (without set +e parameter) it will not execute the commands to update env.pipelines file.
Is there any way to update the file in repository after build in pipeline (with build successful or failed) ?
Thank you