How to create Build Pipelines in Azure DevOps
- You would require Azure Account Access and you need to create an organization inside it.
- After the organization is created you need to add the code in the Azure Repo. To do that please follow this URL:
3. Once you have your code available in Azure Repo you will get the option to set up a new build on your code like below:
4. Click on Set up build and then you will get below screen:
5. Click on above and then you will be directed to the new pipeline Yaml page, where you add new tasks to your pipeline with the help of show assistant
6. Once you can see all the available tasks, you can select the required tasks according to your code. For example:
For java code you can add maven task like above image and click on save and run the pipeline. You can also add variables to your pipeline by clicking on Variables tab.
7. Once your Job ran successful you can also push your artifact to the Azure Artifact, to do that please follow below steps:
a. Click on Artifacts.
b. Create new Feed as dev.
c. Click on Connect to Feed as per above image, and you will get this screen.
d. You can choose any option according to your project, for example we will choose maven for Java project.
e. Set up your project according to the provided steps and then you are good to publish your artifacts in your feed.
8. Once the Artifact is published to the feed you can use the same in your Release Pipeline.