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: 

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

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events