Restricting package components
Using the normal method of operation, the total contents of the target ZMF package are considered eligible to be part of the git remote repo. However, if you want to only consider a subset of the package components, you’ll need to define a component filter file. You can define this file either in the local repo, (that is, below the .git directory), where it applies only locally, or in a more general location which you identify using the environment variable GIT_ZMF_FILTER.
Note
If you want to apply a component filter to an initial clone, the only location available to you is that recorded in the environment variable GIT_ZMF_FILTER.
As you can see, you can filter on the name of the remote repo (d001.prodzmf in this case), application, package number, library types, and component names.
Wildcards can be used. And libType and componentName take the form of a json array.
{
"componentFilter": [
{
"targetZMF": "d001.prodzmf",
"applName": "CZMF",
"packageNumber": "000125",
"libType": ["BAT","PYT"],
"componentName": ["\*"]
},
{
"targetZMF": "d001.prodzmf",
"applName": "CZMF",
"packageNumber": "000125",
"libType": ["SRC"],
"componentName": ["CBLPGM01", "CBLPGM02"]
}
]
}
...
{: .blank-line-full }