Publishing more artifacts from different directories as one compressed (zip) package

Answered

 Hello,

is it possible to publish several artifacts from different directories as one archive (ZIP package) per build configuration?

Thanks.

Regards, Gabriel

 

0
2 comments
Avatar
Permanently deleted user
 
Hello Gabriel,

There are three options to configure here.

 

1. A copy Build Step

1.1. Configure the last Build Step to make copies of all artifacts you need into some subdirectory, e.g. subdir1.
1.2. Configure Project Settings | General | Artifact paths as

subdir1\=>all_artf.zip

2. A try of Example in Configuring General Settings

2.1. Configure Project Settings | General | Artifact paths as

artf/path1 => all_artf.zip!artf/path1
artf/path2 => all_artf.zip!artf/path2

However, it may not work as expected since there is related issue in our tracker: Artifact is published once in archive while specified twice in Artifact paths

3. Artifacts as one zip archive.

3.1. Specify all artifact paths in Project Settings | General | Artifact paths

3.2. Get them as one archive from View | Artifacts | Download all (.zip) or through http://<teamcity.server>/repository/downloadAll/<YourBuildConfigurationId>/<BuildNumber>/artifacts.zip

Please let me know if any of these options suits you.

0

Hello Marina,

thanks for the hints, the option 2 is that what I was looking for, somehow I missed the last example in the docu, my fault :-(

Thanks once again.

Regards, Gabriel.

0

Please sign in to leave a comment.