How to include hidden files or files starting with "."(dot) in the pattern for Artifact Paths

Completed

In my Teamcity Artifact facts, currently I want all the files present into a target tar file, that will be my final Artifact . What I put in the  Artifact path is 
*%env.ARTIFACT_NAME%.tar.gz* , this gives me everything except the file that start with a "dot"
I have looked at the docs , but it does not say anything how to include these files, I have not idea why Teamcity by default forces to exclude these files, there should be an easier option to disable it rather than force exclude . 

0
2 comments
Avatar
Fedor Rumyantsev

Hello Sandeep,

I have just tested two artifact rules on the following folder structure:
/folder/.sample
/folder/file.txt

The following rule:
**/* => Artifacts.tar.gz
gathered all available files into Artifacts.tar.gz, with .sample dotfile included.
The same was true for this rule:
folder/.sample => Artifacts.tar.gz

Could you please confirm what value do you provide to the build via env.ARTIFACT_PATH? How the full artifact rule looks like? (i.e. the value set in Artifact paths of build configuration settings). What are the actual paths you want to include as artifacts? 

0
Avatar
Permanently deleted user

Thanks for the reply Fedor, I just tried to not change that instead used the entire workdir to pull in as the artifact 

0

Please sign in to leave a comment.