The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events