Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

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

Registering Nexus Tool

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

...

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

...

Pipeline setup - Nexus Maven Push

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

...

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

...

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

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

...

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

...

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

...

96. Click on ‘Edit Workflow’ button

...

and add a new step by clicking + icon which will create an unconfigured step

...

7. Enter Step name and select Tool as ‘Nexus Repository’ for the new unconfigured step

...

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

...

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

...

Select “Nexus Step Type” as Push Artifacts

Select the “Repository Format” as Maven

Select the corresponding “Repository Name”

...

Enter Artifact name to be created in Nexus tool

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

...

10. Click on ‘Save’ button → Configuration details of Nexus

...

12step will be saved successfully

...

Pipeline setup - Nexus Docker Push

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

...

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

...

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

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

...

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

Select the Jenkins tool and respective PowerShell job

Fill the other Account, Repository and branch details and save

...

5. Click on ‘Edit Workflow’ button

...

and add a new step by clicking + icon which will create an unconfigured step

...

  1. Enter Step name and select Tool as ‘Nexus Repository’ for the new unconfigured step

...

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

...

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

Select the Step Tool: Nexus tool registered in tool registry

Select “Nexus Step Type” as Push Artifacts

Select the “Repository Format” as Docker

Select the “Jenkins Tool”

Enter Port if required

Select Build step 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

...

Running Pipeline

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

...

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

...

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

...

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

...