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.

The below mentioned steps will guide the step by step workflow for Nexus Tool:

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

Image RemovedImage Added

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

Image RemovedImage Added

3. ‘Success message’ for tool creation will be displayed. Click on ‘Connection’ tab to enter Nexus tool details

Image RemovedImage Added

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

‘Tool configuration updated successfully’ message will be displayed.

Image RemovedImage Added

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

Image RemovedImage Added

6. On the ‘Workflow’ tab, Click on ‘Pencil’ icon on pipeline as well as on ‘Unconfigured step’.

Enter step name - to specify what type of step it is

Select Tool ‘Jenkins’ and Click ‘Save’ → Step details will be saved successfully.

Image RemovedImage Added

7. Click on ‘Configuration’ icon and enter the configuration details of the ‘Build’ step.

Image RemovedImage Added

8. Click on ‘Create job and save' button → Step configurations will be successfully saved

Image RemovedImage Added

9. Click on ‘Pencil’ icon and add a new step. Enter step level details for ‘Nexus Repository’

Image RemovedImage Added

10. Click on ‘Save’ to save the step level details.

Image RemovedImage Added

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

Image RemovedImage Added

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

Image RemovedImage Added

13. Click on ‘Start pipeline’ button to start the pipeline

Image RemovedImage Added

14. ‘Build’ step is succeeded, output of which will be sent to ‘Nexus Repository’ on next step

Image RemovedImage Added

15. Nexus step is successful which indicates the artifact is pushed to Nexus tool Repository

Image RemovedImage Added

16. Login to Nexus tool → Artifact is pushed on the ‘Repository > Maven Releases’ selected on ‘Nexus pipeline step’.

Artifacts are available under the ‘Group name > Kube’ and ‘Artifact name > prod’ given as part of ‘Nexus pipeline step’ configuration.

Image RemovedImage Added

A Sample Nexus Artifact push workflow has been demonstrated above, which in the same way can be used to push any artifacts.