Copied to clipboard

Create a Release Pipeline

Our demo Release Pipeline will be consisted of:

  • A task to build 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 Automation test on Kobiton device using the built APK file.
  • (Optional) A task to upload a new version of the app from APK file.

We will add an Artifact contains the APK file. You can learn more about Artifacts from Azure Devops Documentation. There are many ways to create an artifact. In this sample, we will create a simple artifact containing the test APK file.

  1. On the left sidebar, click on Repos -> Files

    Image not found

    • In the Clone to you computer section, click on Generate Git Credentials button, you can see a pair of User Name and Password that will be used for later. After that, copy the URL in the text box, in the picture below the URL would be in this format:
          https://AZURE_ORG_NAME@dev.azure.com/AZURE_ORG_NAME/AZURE_PROJECT_NAME/_git/AZURE_PROJECT_NAME
      
  2. In your local machine, open the terminal and type: git clone GIT_URL

    Replace GIT_URL with the URL above, depending on your project setup. User the Username and Password above if you were asked during the cloning process. Image not found

  3. 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

  4. In the below picture, we copy the ApiDemos-debug.apk file from the Downloads folder in our computer to the respository. You can download the sample app here: https://appium.github.io/appium/assets/ApiDemos-debug.apk

    Image not found

  5. Back to your Azure Devops web page, you can see the file is uploaded to your Azure Devops Project.

    Image not found

  6. Next, we will create a Release Pipeline. Go to your Azure Devops Project then click on the Release Pipeline page.

    Image not found

  7. In this document, we will create a new Release pipeline for demonstration, you can reuse your existing piprline if you want. Click on New pipeline button to create a new release pipeline.

    Image not found

  8. Click on Empty job on the right sidebar to create an empty Release Stage.

    Image not found

  9. A new Release Stage will be created like below.

    Image not found

  10. To add an Artifact, click on the Add an artifact button.

    Image not found

  11. Choose Azure Repository, and select the required input. This the below picture, newProject is the git repository we use we use to add the sample APK file.

    Image not found

  12. Click Add to add the artifact to your release pipeline. Once we have successfully add an artifact, navigate to the Stage and click on the line “1 job, 0 task”.

    Image not found

  13. You will access to the Stage Configuration screen, then click on the “+” symbol near the Agent Job to Add a new Release Task.

    Image not found

  14. Search "Kobiton" and you can see our 2 Release tasks.

    Image not found

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

    Image not found

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

Feedback

SELECTED

Tip

You can select a specific word, line of text, or one or more paragraphs to comment.

COMMENT

Please give us some feedback !
Thank you!
  • We are listening,
  • we will do our best to fix this soon