Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
Continuous integration (CI) and continuous deployment (CD) form a pipeline by which you can build, release, and deploy your code. Azure DevOps Services provides a complete, fully featured set of CI/CD automation tools for deployment to Azure. Jenkins is a popular third-party CI/CD server-based tool that also provides CI/CD automation. You can use Azure DevOps Services and Jenkins together to customize how you deliver your cloud app or service.
In this tutorial, you use Jenkins to build a Node.js web app. You then use Azure DevOps to deploy it
to a deployment group that contains Linux virtual machines (VMs). You learn how to:
Azure subscription: If you don't have an Azure subscription, create a free Azure account before you begin.
Jenkins server: If you don't have a Jenkins server installed, create a Jenkins server on Azure.
Бележка
For more information, see Connect to Azure DevOps Services.
You need a Linux virtual machine for a deployment target. For more information, see Create and manage Linux VMs with the Azure CLI.
Open inbound port 80 for your virtual machine. For more information, see Create network security groups using the Azure portal.
You need an app to deploy, stored in a Git repository. For this tutorial, we recommend that you use this sample app available from GitHub. This tutorial contains a sample script that's used for installing Node.js and an application. If you want to work with your own repository, you should configure a similar sample.
Create a fork of this app and take note of the location (URL) for use in later steps of this tutorial. For more information, see Fork a repo.
Бележка
The app was built through Yeoman. It uses Express, bower, and grunt. And it has some npm packages as dependencies. The sample also contains a script that sets up Nginx and deploys the app. It is executed on the virtual machines. Specifically, the script:
First, you must configure two Jenkins plug-ins: NodeJS and VS Team Services Continuous Deployment.
H/03 * * * *
to poll the Git repository for changes every three minutes.npm install
to ensure that all dependencies are updated.Бележка
Ensure that the personal access token (PAT) you use for the following steps contains the Release (read, write, execute and manage) permission in Azure DevOps Services.
Create a PAT in your Azure DevOps Services organization if you don't already have one. Jenkins requires this information to access your Azure DevOps Services organization. Be sure to store the token information for upcoming steps in this section.
To learn how to generate a token, read How do I create a personal access token for Azure DevOps Services?.
In the Post-build Actions tab, select Add post-build action. Select Archive the artifacts.
For Files to archive, enter **/*
to include all files.
To create another action, select Add post-build action.
Select Trigger release in TFS/Team Services. Enter the URI for your Azure DevOps Services organization, such as https://{your-organization-name}.visualstudio.com.
Enter the Project name.
Choose a name for the release pipeline. (You create this release pipeline later in Azure DevOps Services.)
Choose credentials to connect to your Azure DevOps Services or Azure DevOps Server environment:
Save the Jenkins project.
A service endpoint allows Azure DevOps Services to connect to Jenkins.
You need a deployment group to register the Azure DevOps Services agent so the release pipeline can be deployed to your virtual machine. Deployment groups make it easy to define logical groups of target machines for deployment, and to install the required agent on each machine.
Бележка
In the following procedure, be sure to install the prerequisites and don't run the script with sudo privileges.
A release pipeline specifies the process that Azure Pipelines uses to deploy the app. In this example, you execute a shell script.
To create the release pipeline in Azure Pipelines:
If you encounter any bugs with the Jenkins plug-ins, file an issue in the Jenkins JIRA for the specific component.
In this tutorial, you automated the deployment of an app to Azure by using Jenkins for build and Azure DevOps Services for release. You learned how to:
To learn about how to use Azure Pipelines for both Build and Release steps, refer to this.
To learn about how to author a YAML based CI/CD pipeline to deploy to VMs, advance to the next tutorial.
Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаОбучение
Пътека за обучение
Deploy applications with Azure DevOps learning path - Training
Learn how to configure release pipelines that continuously build, test, and deploy your applications.
Сертифициране
Microsoft Certified: DevOps Engineer Expert - Certifications
This certification measures your ability to accomplish the following technical tasks: Design and implement processes and communications, design and implement a source control strategy, design and implement build and release pipelines, develop a security and compliance plan, and implement an instrumentation strategy.