Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Update Config File after run scripts

Gustavo September 14, 2018

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.image.png

 

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

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events