Configuring build artifacts

Build artifacts can be configured within the build template or on a build process based on the created artifact sets.

The artifact sets must be created before you can configure them. See, Creating 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.

  1. On the left navigational panel, click Projects.
  2. Expand the project to configure by clicking the expand icon expand project icon to display the project's build processes and select a build process.
  3. Click the Artifacts tab.
    The Artifacts page displays the currently configured artifacts and their properties.
  4. To add a new artifact configuration, click New Artifact Config.
    1. Select the artifact set from the associated menu. Remember, only configured artifact sets are listed.
    2. 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}.
    3. 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.
    4. 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.
    5. Click Save.