How can I get TeamCity to zip a zip file -


my problem: have build on teamcity produces zip file: files.zip contains lots of files, , zip file container files.

sadly though, , due legacy reasons, zip file has no version number in it's title. have version number in it. this: files.1.2.3.4.zip

i thought maybe create containing zip, can adorn version number, this: containingzip.1.2.3.4.zip!files.zip files.zip zipped zip! (madness).

but cannot work out how through teamcity , it's artifact paths?

what feel should work is: /**/. => files.zip => containingzip.1.2.3.4.zip!files.zip makes files.zip

breaking 2 steps, works not too: /**/. => files.zip files.zip => containingzip.1.2.3.4.zip doesn't work either files.zip doesn't exist when artifact existence checks done.

anyone know how this? (or have pre-zip in build step?)

thanks.

you can use parameter references in artifacts path, if define configuration parameter called, say, versionnumber contains version number value , use artifact definition of

/**/. => files.%versionnumber%.zip 

then desired output.


Comments