Add the excluded files to the excludedArtifacts list and remove them from the artifacts list in the build info.