Skip to content

Commit

Permalink
Merge pull request #4711 from MicrosoftDocs/user/ramiMSFT/1954747
Browse files Browse the repository at this point in the history
artifactignore
  • Loading branch information
v-regandowner authored May 31, 2022
2 parents f9f979d + 2a3a0ab commit 955e9f8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/artifacts/reference/artifactignore.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,18 @@ In the following example, we will be ignoring all files except the ones in the *
```

> [!IMPORTANT]
> The *.artifactignore* file must be in the same directory as the path defined by the `targetPath` of your [Publish Pipeline Artifacts](../../pipelines/tasks/utility/publish-pipeline-artifact.md) task.
> The *.artifactignore* file must be in the directory provided to the `targetPath` argument in your [Publish Pipeline Artifacts](../../pipelines/tasks/utility/publish-pipeline-artifact.md) task.
## Syntax

The *.artifactignore* follows the same syntax as the [.gitignore](https://git-scm.com/docs/gitignore) with some minor limitations.
The *.artifactignore* follows the same syntax as the [.gitignore](https://git-scm.com/docs/gitignore) with some minor limitations. The plus sign character `+` is not supported in URL paths and some of the semantic versioning metadata for some package types like Maven.

> [!IMPORTANT]
> The plus sign character `+` is not supported in URL paths and some of the semantic versioning metadata for some package types like Maven.
## Ignored by default

To reduce the chances of publishing the *.git* folder, we automatically ignore this path if you do not have an *.artifactignore* file. You can re-include it by creating an empty *.artifactignore* file.
> [!Note]
> *.git* file is ignored by default if you don't have an *.artifactignore* file. You can re-include it by creating an empty *.artifactignore* file.
## Related articles

- [Package graphs](../concepts/package-graph.md)
- [Package componentization](../collaborate-with-packages.md)
- [Key concepts](../artifacts-key-concepts.md)
- [Limits on package sizes and counts](limits.md)

0 comments on commit 955e9f8

Please sign in to comment.