I'm working with bitbucket pipelines and I want to archive a build folder every time the pipeline runs. But the artifacts dont get replaced by new one. How can I make new artifacts available for each build.
Hi @Ci Admin ,
An artifact is produced by a step of a build, and it is therefore associated with that build. You cannot replace artifacts produced by and associated with a different build.
Why would you need to replace artifacts of previous builds?
I'm not sure what your use case is, if you could provide us with some more context, we may be able to find a different way to achieve what you want.
If the archived folder is not too large, one idea would be to upload the archived folder in the Downloads section of the repo. You can use the following pipe for this:
Uploading a new file with the same name will replace the existing file in the Downloads section of the repo. Is this something that would work for you?
Kind regards,
Theodora
@Ci Admin is correct the new artifact actually is old not replacing with the latest built. there is a bug in your system.
@Theodora Boudale learn to read questions carefully
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about write a clean workplace script?
Will it help you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.