Bamboo build for modified files (only Updated Artifacts Shot)
Asked by lee:

We have multiple projects in one solution. When we commit this to Bitbucket and perform a build and Shot in Bamboo, all projects in the solution are built and Shot. We want to take a snapshot only of the changed DLL files. Please advise on how to achieve this.  

finally we want to take a Shot only of the updated artifacts   

please Help us.....


Answers:
author: Shashank Kumar
body: Hello [lee](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5386184),
> 1. Are you saying that you can't only apply the modified artifacts with your reply?  
>
Artifacts are defined at Job level and this definition is valid for each time the build is run, so Bamboo will try to find the artifacts during each build ( on the location which you have defined during the artifact definition ) and if it finds it it will display it under the artifact tab of the build results.

It does not check what has changed in the artifact from the previous build or even what has been newly built with the new code changes. Bamboo just collects all the artifacts matching the pattern and display there is no comparison functionality available.
> 2. I don't have an "Exclusion pattern".Does it only exist in other versions?

This is available from Bamboo 9.0+ versions
> 3. If there's an "Exclusion pattern,"What examples should I put in there?  
> Can you show me a sample?

You can see my example below, here I am instructing Bamboo to look into target folder and if it finds any files ( as per copy pattern which is \* ) it should list it as an Artifact, now under Exclusion pattern I have instructed Bamboo to ignore any files with pattern of .jar, so now Bamboo will consider everything as an artifact except files with .jar pattern

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/297518iD82280762BCE9104/image-size/large?v=v2&px=999 "image.png")

Regards,

Shashank kumar


author: Shashank Kumar
body: Hello Lee,

Welcome to Atlassian community.

If I understand your request correctly, you can check the **commit** tab of your build results tab to understand what changes were built for that particular code change in bitbucket, see below

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/297236i964CBEA3B5509BD2/image-size/large?v=v2&px=999 "image.png")

If my understanding is incorrect can you explain your question with an example please.

Also I didn't understand your below question, can you please elaborate a little
> Finally we want to take a Shot only of the updated artifacts   

Regards

Shashank Kumar

comments: author: lee
body: thank you for your reply

I'll explain again. This picture is a summary of bamboo.

The committed changes include modifications to A, F.

but All artifacts are applied.

![SAMPLE.png](https://community.atlassian.com/t5/image/serverpage/image-id/297282i57E17EFE6D843595/image-size/large?v=v2&px=999 "SAMPLE.png")


author: Shashank Kumar
body: Hello Lee,

Thanks for providing the attachment, this explains better now!

While defining the artifact in Bamboo, You define it's name, Location, File pattern or any exclusion pattern, see below

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/297368i0043F98D21D83525/image-size/large?v=v2&px=999 "image.png")  

If your source code is creating an artifact and it matches the filter above, Bamboo will create all the artifcats and list it under the artifacts tab.

Bamboo will not inform what are the artifacts which has changed based on source code ( Probably a worth feature request where Bamboo can compare the artifacts with the previous build result and inform of the differences), but this would be a overkill assuming in some case small files in the range of thousands are created as artifacts.

Regards,

Shashank Kumar


author: lee
body: thank you for your reply

I have a few inquiries.  

1. Are you saying that you can't only apply the modified artifacts with your reply?  
2. I don't have an "Exclusion pattern".  
Does it only exist in other versions?  
3. If there's an "Exclusion pattern,"  
What examples should I put in there?  
Can you show me a sample?  

<br />

If you know anything, please help me.  

![123.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/297488iD024914E50E2DD83/image-size/large?v=v2&px=999 "123.jpg")