Mohamad Mousheimish
Mohamad Mousheimish

Reputation: 1695

Azure DevOps pipeline for a Kotlin project

I'm trying to build a CI pipeline for a Kotlin project developed on Android Studio. Using Azure DevOps pipelines.

I'm having an issue finding a Kotlin plugin or Tasks for the pipeline as we can see in the picture.

Anyone have an idea about how can we implement this type of pipeline? I didn't find anything on the internet and Microsoft have no documentation.

enter image description here

Upvotes: 2

Views: 2028

Answers (2)

Mohamad Mousheimish
Mohamad Mousheimish

Reputation: 1695

The issue was not with Kotlin or Java. The issue was with the SDK being used on the Hosting Agent. The solution was the following steps:

  1. Upload a SDK to Azure Blob Storage
  2. Use the Use Java Task in order to install the specified SDK

Run the Android Pipeline with Sonarqube tasks, build was successfully run and SonarQube Code Review was successfully executed.

Upvotes: 1

OscarNahoj
OscarNahoj

Reputation: 36

If I understand correctly the answer you are looking for is the Gradle task. Here is a blog from someone using gradle and in azure devops with their Kotlin code. But I am sure there are more details around how to set up gradle task for kotlin build.

Upvotes: 1

Related Questions