Please follow the below steps to parse 3.0 API from automatics-core project and update to microservice from jenkins job.
1.Creating Jenkins job
- From Jenkins, select “New Item”,
Image Added - Specify name of the new job to be created.
- Select ‘OK’ button.
2. Configuration of Jenkins Job
Configure General Settings
- In ‘General’ settings, add proper description in the ‘Description’ section
- Check ‘Discard old builds’ checkbox
Configure Source Code Management
- In ‘Source Code Management’, select git and under ‘Repository’ add the repo detail
eg : ‘https://code.rdkcentral.com/r/rdk/tools/automatics/automatics-core’ and also add the repo credentials
Image Added
- Also add the branch of the repository in ‘Branches to build’
eg : */rdk-next
Image Added
Configure Build Environment
- In ‘Build Environment’, select ‘Delete workspace before build starts’
Image Added
Configure Build Settings
- In the ‘Build’ settings, Click on ‘Add build step’ and Select ‘Invoke top-level Maven level targets’
Image Added
- Add the following maven step in the text box
clean package exec:java -Dmain.class=com.automatics.executor.UtilsParser -Dautomatics.properties.file="<<automatics_props_url>>" -DskipTests
- 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.
Image Added
Reference - https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html
Save the Configuration
- Click on ‘Apply’ and ‘Save’