This documentation relates to an earlier version of Bamboo.
View

Unknown macro: {spacejump}

or visit the current documentation home.

A Job's artifacts are any reports, websites or files (e.g. JAR files) generated by a Job build that you wish to keep after each build of that Job.

Artifacts are copied to a subdirectory (/JOB_KEY/download-data/) under your 'Build Directory' folder (see Locating Important Directories and Files). Artifacts which you define in the plan are listed in each build result as User-defined artifacts (see Viewing a Build's Artifacts in the Bamboo User's Guide).

To configure a Job's build artifacts,

  1. Access the Job's configuration pages. To do this:
    1. Click 'Home' to go to the Dashboard.
    2. Click the 'All Plans' tab.
    3. Locate the Job's Plan in the list and click the Plan's name (i.e. before the first '>'). The Plan's Plan Summary page will be displayed.
    4. In the Stages section of this page, click the name of the Job you wish to configure. The Job's Job Summary page will be displayed.
      (tick) If necessary, expand the appropriate Stage to access your Job.
    5. Click the 'Actions' dropdown menu on the right and select 'Configure Job'. The Job's Configuration pages will be displayed.
  2. Click the 'Artifacts' tab to display the Job's Artifacts settings (see screenshot below).
  3. Complete the following fields to add and configure a Job's build artifact:
    • In the 'Artifact Label' field, specify the name which Bamboo will use to describe the artifact.
    • In the 'Source Directory' field, specify the directory (including path) where Bamboo will look for your artifact.
      (info) The source directory is relative to the build directory, do not use absolute path to refer to the 'source directory'.
    • In the 'Artifact Copy Pattern' field, specify the name (or Ant file copy pattern) of the artifact(s) you want to keep.
      (info) The artifact copy pattern is relative to the source directory specified.
      For example, if you want to keep the latest version of a JAR you have built, you could specify Artifact Copy Pattern to be '*/.jar' and the Source Directory to be 'target'.
  4. Click the 'Add' button to add your new build artifact for this Job.
    (info) Click the 'Delete' link next to any build artifacts in the table above that you want to remove or re-configure.


Screenshot: 'Build Artifacts'