8. Code Snippet for CI/CD Execution
Why was this developed?
Implementing continuous integration and continuous delivery (CI/CD) has been difficult for users. Tasks like automating tests and configuring pipeline tools were complex to manage within projects.
What is the Goal?
The Avo Assure team has developed a Code Snippet for CI/CD Execution, which simplifies these processes. It provides easy-to-use tools for test automation, pipeline configuration, and other development tasks. Users can now set up CI/CD workflows for their projects without deep technical expertise.
How does it Look?
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252FQGqMqL2x0wC6s4DtNCxH%252F0.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=5e09c02&sv=1)
How does it work?
Through CI/CD Pipeline
The user has to navigate to the Avo Assure home screen.
The user has to click the Execute button, and the Execution Profile window will be displayed.
The user has to create an Execution Profile. Refer to the Create Execution Configuration section.
The user has to log in to any CI/CD Pipeline like Jenkins, Azure DevOps, etc.
The user has to click the CI/CD button from the Configuration & Execute window. The CI/CD Execution window will be displayed.
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252FNnqejLb8cjt8WrhkpcBr%252F2.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=220df2dd&sv=1)
The user has to select the Execution Trigger Type as the Code snippet radio button. And set the timer to the required seconds.
The user has to select the language from the Select Language drop-down. Select the Python or Power Shell – Rest Method from the list. Note: Currently, we are supporting Python and Power Shell – Rest Method.
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252FqCQJ0jdxAMvw8zeGrUiT%252F4.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e683a317&sv=1)
To copy the Python / Power Shell – Rest Method code, the user has to click the Copy icon. Pass the Python / Power Shell – Rest Method code to CI/CD Pipeline.
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252Fk2WTuYSE9uHTEeb4Fo4m%252F5.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4eb3ec0e&sv=1)
The user has to navigate to the Azure DevOps home screen, click the Pipelines button, select the existing Pipeline from the list, and click the Edit button.
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252FZc7dVTzIeM7PVsygbR6W%252F6.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=6138bd59&sv=1)
The user has to click the dotnet build button. Pass the copied script in the Script field and click the Save button.
![](https://docs.avoautomation.com/~gitbook/image?url=https%3A%2F%2F420146545-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FTb6M8zQCzQSmPAQyfnHz%252Fuploads%252FL2qOJFljHDKrQHONaX9O%252F7.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=24e5a44a&sv=1)
The user has to click the Run Pipeline button and then click the Run button. Note: The Agent must be up and running.
To view the execution in the CI/CD pipeline, the user has to click the Agent job button.
Once the Execution is done, the user can view the Reports through the link below.
How can I get this?
If the user upgrades to the latest version of Avo Assure to 23.2.2, this feature will be available automatically.
Last updated