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

Copy an artifact to a directory in repository

Krishna Kumar Singhal September 26, 2022

I need to copy the allure results after test execution to a folder in the main repository so I can use it to publish results.

Using this command:

cp -r allure-report $BITBUCKET_GIT_HTTP_ORIGIN/public

Getting this error:

+ cp -r allure-report $BITBUCKET_GIT_HTTP_ORIGIN/public
cp: cannot create directory /bitbucket.org/63idealabs/nc-test-automation/public: No such file or directory

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.
October 5, 2022

Hi @Krishna Kumar Singhal

Thank you for reaching out to the community.

From your configuration, instead of using the variable $BITBUCKET_GIT_HTTP_ORIGIN, would it be possible for you to try to use $BITBUCKET_CLONE_DIR since you're referring to a directory?

Let me know how it goes.

Regards,
Mark C

Krishna Kumar Singhal October 5, 2022

Thanks for your reply @Mark C, this issue was resolved, didn't delete just in case someone else had the same query.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events