Versions Compared

Key

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

...

This tutorial will walk you through how to create and configure the pipeline step for Nexus Tool.

...

Create a Nexus Repository tool in Opsera’s Tool Registry

The below mentioned steps will guide the step by step following steps provide instructions on workflow for Nexus Tool:

  1. Open Opsera Portal > Tool Registry > Click on ‘New ‘+ New Tool’ button.

...

  1. Image Added

2. On the ‘Create New Tool’ page > Enter ‘Nexus tool name’ and select tool identifier as ‘Nexus Repository’

...

and click Create button

...

→ Locate Nexus tool. Click ‘Select Tool’. Provide values for required fields and click ‘Create’ button to save the new tool.

...

3. ‘Success message’ for tool creation will be displayed and Summary screen of the created tool will be displayed.

...

4. Enter ‘Nexus URL’, User ID and Nexus Password of the tool and click on ‘Save’ button.

‘Nexus Tool configuration updated successfully!’ message will be displayed.

...

5. Click ‘Test Connection’ button to validate a successful connection.

...

Pipeline

...

Setup

Nexus Maven Push Step Setup

1. Create a new blank pipeline template to set up the steps to attain the push of artifacts to Nexus tool.

...

9. Click on ‘Configuration’ icon and enter the configuration details of the ‘Nexus’ step.

Select the Step Tool : - Select Nexus tool registered in tool registry

Select “Nexus Step Type” as Push Artifacts

Select the “Repository Format” as Maven

Select the corresponding “Repository Name”

Enter Tool Registry

Nexus Step Type - Select ‘Push Artifacts’ from dropdown.

Repository Format - Select ‘Maven’ from dropdown.

Repository Name - Select the corresponding repository.

Group Name - Provide a group name to be created in Nexus tool.

Enter Artifact Name - Provide an artifact name to be created in Nexus tool.

Select Build step Build Step - Select the name of previous step from drop down, Output of which will be sent to Nexus.

...

10. Click on ‘Save’ button → Configuration details of Nexus step will be saved successfully

...

...

Nexus Docker Push Step Setup

  1. Create a new blank pipeline template to set up the steps to attain the push of artifacts to Nexus tool.

...

9. Click on ‘Configuration’ icon and enter the configuration details of the ‘Nexus’ step.

Step Tool- Select the Step Tool: configured Nexus tool registered in tool registry

Select “Nexus Step Type” as Push Artifacts

Select the “Repository Format” as Docker

Select the “Jenkins Tool”

Tool Registry from dropdown.

Nexus Step Type - Select ‘Push Artifacts’ from the dropdown.

Repository Format - Select ‘Docker’ from the dropdown.

Select Jenkins Tool - Select the configured Jenkins tool from the Tool Registry.

Port - Enter Port if required

Select Build step Step - Select name of previous step from drop down, Output of which will be sent to Nexus.

...

10. Click on ‘Save’ button → Configuration details of Nexus step will be saved successfully

...