Jenkins
Jenkins Integration in Avo Assure
Last updated
Jenkins Integration in Avo Assure
Last updated
For the installation of Jenkins, make sure port number 8080 is free.
Java must be globally available (JAVA_HOME path must be set in the environment variable).
Install Jenkins using the 'War' file using the following command: java –jar jenkins.war
Navigate to http://localhost:8080 and complete the configuration steps.
Install HTTP Request Plugin, if not available. Note: Click on Jenkins > Manage Jenkins > Manage Plugins Available > Install HTTP Request Plugin.
Create a new item of type Freestyle project.
4. Add Build Step of type HTTP Request with the following configuration. URL: https://< Avo Assure Application URL >/ExecuteTestSuite_ICE_SVN HTTP Mode: POST Ignore SSL Errors: Yes
5. Advanced configuration should look like below:
Authorization: None
Headers – Accept: Application JSON
Headers – Content-Type: Application JSON
Pass build params to URL: No
Request body: <Execution request data prepared above>
File Upload: None
Response Connection timeout: 0
Response codes expected: 100:399
Response body in console: Yes
6. After filling in all the required configuration details, click on 'Save'.
7. Before starting the execution, make sure that the ICE engine is connected.
8. Click on 'Build Now' (in the left panel). The execution will begin in Avo Assure’s ICE.
9. Once the execution is completed, reports will be generated and can be viewed in Avo Assure's Report plugin.
10. Jenkins will also have response data that looks like the below image. This data is available in the console output of the build job.
Navigate to http://localhost:8080 and complete the configuration steps.
Install HTTP Request Plugin, if not available. Note: Click on Jenkins > Manage Jenkins > Manage Plugins Available > Install HTTP Request Plugin.
Create a new item of type Pipeline.
Navigate to the Pipeline tab.
Click on the Pipeline Syntax link to generate the Pipeline Script.
The Pipeline Syntax's Snippet Generator will be launched in a new window/tab of the same browser. Switch to this new window/tab to generate the Pipeline Script.
Select the httpRequest option from the Sample Step dropdown.
Provide appropriate information for the fields URL, HTTP mode, and Ignore Ssl errors?.
Click on the Advanced button.
Specify appropriate information for the fields (displayed for Advanced configurations) Accept, Content-Type, Response body in console? and Request body.
Click on the Add button under Custom headers.
Specify the header and its value for X-ICE-Name.
Similarly, click on the Add button to add the headers and their values for X-TOKEN-NAME and X-TOKEN-HASH.
After the headers and their values for X-TOKEN-NAME and X-TOKEN-HASH are specified, click on the Generate Pipeline Script button.
Select and copy the generated Pipeline Script.
Switch back to the initial window/tab where the Pipeline Script is to be specified and paste the copied data into the Script field of the Pipeline Script.
Click on the Apply button to save the Pipeline Script.
Click on the Save button to navigate to the Pipeline project.
Click on the Build Now option to begin execution.
The build under execution will be displayed in progress.
Once the execution is completed, click on the build number.
Click on the Console Output option to view the response.
The response of the execution will be displayed along with its execution status.