Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Ensure that you followed the procedures in Activating the Extension.

  2. Inside your Azure DevOps organization, go to a specific project.

  3. Inside your Azure DevOps project, go to Project Settings > Extensions > WhiteSource.

  4. In Product name, enter the desired WhiteSource product name. As you enter the name, it will simultaneously appear under the input field; click that name below.

    Image RemovedImage Added
  5. In the Add a new Product dialog box, click Add.

  6. Under the Product name field click Save.
    The new product will be created in the WhiteSource application. Any build that will run in the specific Azure DevOps project will have results appear in the WhiteSource Application under the provided product name.

  7. Ensure that you follow the procedures in Adding a WhiteSource Build Task to Your Pipeline.

...

  1. In the pipeline edit page, from the right side, click Show assistant. The Tasks sidebar is displayed.

  2. In the search bar, enter whitesource. The WhiteSource task is displayed.

  3. Click the WhiteSource task.

  4. From the bottom right corner, click Add. The WhiteSource task is added to the pipeline.

    Code Block
    - task: whitesource.WhiteSource-azure-devops-services.bolt.wss.WhiteSource@21
  5. (Optional) To specify the name of the WhiteSource project to be created, add the following to the WhiteSource task. In the following example, replace New_Project_Name with the name you want to give your WhiteSource project:
    NOTE: When the Overwrite projects with latest build data checkbox from the Organization Settings > Extensions >WhiteSource is selected, you will be unable to change the project name after the first build run.

    Code Block
    - task: whitesource.WhiteSource-azure-devops-services.bolt.wss.WhiteSource@21
      inputs:
        cwd: '$(System.DefaultWorkingDirectory)'
        projectName: 'New_Project_Name'
  6. (Optional) To specify custom Unified Agent Configuration parameters, add all parameters in the WhiteSource Configuration field (ensure each parameter along with its value are provided on a separate line). In the following example, under configuration, provide all relevant parameters.
    NOTE: The parameters used here overwrite the default configuration parameters. Configuration parameters that were not provided will use the default values as described here.

    Code Block
    - task: whitesource.WhiteSource-azure-devops-services.bolt.wss.WhiteSource@21
      inputs:
        cwd: '$(System.DefaultWorkingDirectory)'
        configuration: |
         npm.resolveDependencies=true
         maven.resolveDependencies=true
  7. Click Save & queue.

...