CONTROLLED DATA
Leidos Proprietary - US Citizens ONLY
The information contained herein is proprietary to Leidos, Inc. It may not be used, reproduced, disclosed, or exported without the written approval of Leidos.

Use these steps to configure the Artifactory Maven 3 Plugin for a Bamboo build plan.

Step-by-step guide

Prerequisites

  1. Bamboo project.
  2. Docker image that supports the Artifactory Maven 3 plugin capability. This docker image is used to standup a Per-Build Container (PBC).
  3. Repositories in Artifactory.
  4. Crowd account that has Artifactory permissions to both resolve dependency artifacts and upload build artifacts to the repositories from Step 2. 

 

Step

Description

 

1

In the 'Tasks' tab of the Bamboo build plan, click 'Add task'.
Note that a 'Source Code Checkout' task should already be configured.

2

Select the 'Artifactory Maven 3' task.

3

Fill in the following fields

  • Task Description
  • Project File
  • Goals
    • IMPORTANT: Do not use the maven 'deploy' goal. This will conflict with the configuration of the deployment section of the plugin. Use a goal, such as 'install', that will produce a JAR.
  • Additional Maven Parameters
    • Optional: The image shows the debug and stacktrace flags.
  • Build JDK
  • Executable
  • Environment Variables
    • Optional

4

Fill in the following fields (cont.)

  • Maven Opts
    • Optional
  • Working Subdirectory
  • Check Resolve Artifacts from Artifactory
  • Select Resolution Artifactory Server URL
  • Resolution Repository
  • Resolver Username
  • Resolver Password

5

Fill in the following fields (cont.)

  • Select Artifactory Server URL
  • Target Repository
  • Deployer Username
  • Deployer Password

6

Fill in the following fields (cont.)

  • Check Deploy Maven Artifacts
  • Deployment Include Patterns
    • Optional
  • Deployment Exclude Patterns
    • Optional

7

Fill in the following fields (cont.)

  • Check Capture and Publish Build Info
    • IMPORTANT: Build-info forms the basis of any subsequent Xray scans.

8

Save the configuration.

Related articles