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

How can I create and delete a file in repository, only in pipeline?

Moideen Ubais
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 10, 2022

For a pipeline, I want to create a file in the repo under some directory and use the content in the next step. Also want to delete the file in the final step. How do I achieve this?

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 13, 2022

Hi @Moideen Ubais,

Welcome to the community.

Since the purpose of the file you'd like to create is only during the Pipelines build execution, the best I can suggest is for you to use Bitbucket Cloud Pipelines Artifacts.
Artifacts will allow you to save files and access them in the following steps.

Hope it helps and let me know if you have further questions.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events