Please follow the below steps to parse 3.0 APIs from rdkb-utils project and update to microservice from jenkins job.
1.Creating Jenkins job
- From Jenkins, select “New Item”,
![](/download/thumbnails/254407300/image2022-2-22_13-45-38.png?version=1&modificationDate=1682094007000&api=v2)
- Specify name of the new job to be created.
- Select ‘OK’ button.
2. Configuration of Jenkins Job
- In ‘General’ settings, add proper description in the ‘Description’ section
- Check ‘Discard old builds’ checkbox
- In ‘Source Code Management’, select git and under ‘Repository’ add the repo detail
eg : ‘https://code.rdkcentral.com/r/rdk/tools/automatics/rdkb-test-utils’ and also add the repo credentials
![](/download/attachments/254407300/image2023-4-21_21-49-39.png?version=1&modificationDate=1682094007000&api=v2)
- Also add the branch of the repository in ‘Branches to build’
eg : */rdk-next
![](/download/attachments/254407300/image2022-2-22_13-54-29.png?version=1&modificationDate=1682094007000&api=v2)
- In ‘Build Environment’, select ‘Delete workspace before build starts’
![](/download/attachments/254407300/image2022-2-22_13-56-7.png?version=1&modificationDate=1682094008000&api=v2)
- In the ‘Build’ settings, Click on ‘Add build step’ and Select ‘Invoke top-level Maven level targets’
![](/download/attachments/254407300/image2022-6-1_11-51-29.png?version=1&modificationDate=1682094008000&api=v2)
- Add the following maven step in the text box
clean package -DskipTests exec:java -Dautomatics.properties.file="<<automatics_props_url>>"
- Click on Advanced button in ‘Invoke top-level Maven level targets’ and add following maven configuration. In the image shown below, maven settings.xml is place at /mnt/maven directory. Update the settings.xml path based on its location in partner's VM.
![](/download/attachments/254407300/image2022-6-1_12-6-37.png?version=1&modificationDate=1682094008000&api=v2)
Reference - https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
Save the Configuration
- Click on ‘Apply’ and ‘Save’