In the pipeline edit page, from the right side, click Show assistant. The Tasks sidebar is displayed.
In the search bar, enter whitesource. The WhiteSource task is displayed.
Click the WhiteSource Bolt task.
From the bottom right corner, click Add. The WhiteSource Bolt task is added to the pipeline.
- task: WhiteSource@21 inputs: cwd: '$(System.DefaultWorkingDirectory)'
(Optional) To specify the name of the WhiteSource project to be created in WhiteSource Essentials, add the following to the WhiteSource task. In the following example, replace
New_Project_Namewith the name you want to give your WhiteSource project:
NOTE: You cannot change the project name after the first build run.
- task: WhiteSource@21 inputs: cwd: '$(System.DefaultWorkingDirectory)' projectName: 'New_Project_Name'
Click Save & queue.
NOTE: The WhiteSource task can be moved to other locations within the steps section, depending on your preferences.