Create a Release Pipeline

This Release Pipeline demo will go over:

  • A task that builds an Android app to an APK file stored in Azure DevOps.
  • For simplicity, we will skip the app building process and use an existing APK file.
  • A task to execute an automation test on a Kobiton device using the built APK file.
  • (Optional) A task to upload a new version of the app from APK file.

An Artifact will be added the APK file. You can learn more about Artifacts on the Azure DevOps Documentation. There are many ways to create an artifact, but in this sample we will create a simple artifact containing the test APK file.

  1. On the left sidebar, click Repos > Filesstep1.png

  2. On the Clone to you computer section:
    1. Click the Generate Git Credentials button to display User Name and Password that will be used in a later step.
    2. Copy the URL below:
      https://AZURE_ORG_NAME@dev.azure.com/AZURE_ORG_NAME/AZURE_PROJECT_NAME/_git/AZURE_PROJECT_NAME
    3. On your local machine, open Terminal and enter: git clone GIT_URL
    4. Replace GIT_URL with the URL above, depending on your project setup. If prompted during the cloning process, use the Username and Password from step 2.step2.png

    5. In your local machine, copy the APK file to the cloned repository. Then cd to the repository and type this line in your terminal: git add . && git commit -m "Upload apk" && git push

    6. In the example below, we copied the ApiDemos-debug.apk file in the /Downloads folder in to the Git repository. You can access and download the sample app here. step3.png

    7. Back to your Azure DevOps web page, confirm that the uploaded file is listed on your Azure DevOps Project. step4.png

    8. Create a Release Pipeline. On your Azure DevOps Project, click on the Release Pipeline page.
      step5.png
    9. In this document, we create a new Release pipeline, but an existing pipeline can be reused. Click the New pipeline button to create a new release pipeline.
      step6.png
    10. On the right sidebar, click Empty job to create an empty Release Stage. 
    11. To add an Artifact, click on the Add an artifact button. empty-job-on-azure.pngazure-release-stage.png
    12. To add an Artifact, click +Add an artifact.
      step9.png
    13. Select Azure Repository and enter the required information. In the image below, newProject is the Git repository used to add the sample APK file.


      step10.png

       

    14.  To add the Artifact to the release pipeline, click Add. Once an Artifact has been added, navigate to Stage and click 1 job, 0 task.

      artifact-on-release-pipeline.png

    15. To add a new Release Task, on the Stage Configuration screen > Agent Job click on the + icon.

       

    16. In the search box, enter Kobiton to display Kobiton's two release task.step13.png

      step12.png

    17. Click on Kobiton Automation Test Executor to add the task to your release.

      step14.png

  1.  
  1.  

The next two sections will guide you on how to use these Kobiton Release Tasks.

Was this article helpful?
0 out of 1 found this helpful