file permissions in artifact is not preserved


the first stage in the build process produces a script that has execution permissions (755). This script is part of the artifact of that stage. The second stage depends on this artifact and expects to be able to run the script. However, the permissions are reset to 644. How do I fix this?



1 answer

1 accepted

0 votes
Accepted answer

You have to either recreate the permissions via an Script Task (Inline) or store the artifact in an archive format that preserves permissions (basically, tar the artifact via a Script Task, have the tarrred version defined as an artifact and untar it in the second job - again, via a script task).

Thanks, I will try that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 4 hours ago in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

15 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you