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

Is it possible to use a pipeline to execute a node script and save the generated files in the repo?

Michael Taylor June 20, 2019

Greetings,

 

Have some node scripts in a package.json that autogenerate code documentation for maintainability.

 

Is there a way to execute the node script and have it save the generated files inside the master branch of the repo?

 

It would be nice if after a pull request has been accepted and merged in the user could run “git pull” on their local box and get the most current version of the pipeline generated documentation.

 

Please help and thank you.

1 answer

1 accepted

0 votes
Answer accepted
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2019

Hi @Michael Taylor

I don't see any blockers on this unless I'm misunderstanding you.

You would need to create a new commit to the same repo after running your node script. This commit would need to use the [skip ci] token on its commit message. It will prevent a new build to happen for this commit.

You can see more details about this here: https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/skip-ci-doesn-t-prevent-pipeline-running/qaq-p/965889

Please let me know if this helps you to move forward.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events