Build artifacts can be configured within the build template or on a build process based
on the created artifact sets.
Configuring artifacts for a build process on templates provides for standardization among build
processes. However, sometimes you require a more specific configuration for a build. By configuring
artifacts on the build process you can create this specialization. The artifacts that are configured
at the build level are concatenated with those that are defined at the template level and apply to
the build process they are configured on. For information about creating templates, see Creating build process templates.
-
On the left navigational panel, click Projects.
-
Expand the project to configure by clicking the expand icon
to display the project's build processes and select a build process.
-
Click the Artifacts tab.
The Artifacts page displays the currently configured artifacts and their
properties.
-
To add a new artifact configuration, click New Artifact Config.
-
Select the artifact set from the associated menu. Remember, only configured artifact sets are
listed.
-
Specify the base directory in the Base Directory field. The directory is
relative to the working directory when the Publish Artifacts step runs. To use the working
directory, enter a period (.). You can use process and project properties to define the location,
such as ${property: value}.
-
Specify the artifacts to retrieve in the Include Artifacts field. You
can use the * and ** wildcards to define the pattern. The ** wildcard indicates every directory and
the* wildcard indicates every file. For example, the
dist/**/* pattern retrieves
every folder and file beneath the dist directory. You can also use process and
project properties to define the pattern.
-
To exclude artifacts that would otherwise be included, specify them in the Exclude
Artifacts field. You can use process and project properties to define the pattern.
-
Click Save.