次の方法で共有


Build Java apps

TFS 2017

Note

The following guidance uses YAML-based pipelines available in Azure Pipelines. Use tasks that correspond to those used in the following YAML.

You can use a pipeline to automatically build and test your Java projects. Once you build and test your app, you can deploy to Azure App Service, Azure Functions, or Azure Kubernetes Service. If you're working on an Android project, see Build, test, and deploy Android apps.

Prerequisites

You must have the following items in Azure DevOps:

Create a pipeline

  1. Import the following repo into your Git repo in TFS:

    https://github.com/MicrosoftDocs/pipelines-java
    

This template automatically adds the tasks you need to build the code in the sample repo.

  1. Save the pipeline and queue a build. When the Build #nnnnnnnn.n has been queued message appears, select the number link to see your pipeline in action. You now have a working pipeline that's ready for you to customize any time!

Read further to learn some of the more common ways to customize your pipeline.

Build environment

Your builds run on a self-hosted agent. Make sure that you have Java installed on the agent.