Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TestBot][Linux] Deploy on Azure using Azure Pipelines #1961

Merged
merged 2 commits into from
May 29, 2019

Conversation

ParadoxARG
Copy link
Contributor

@ParadoxARG ParadoxARG commented May 27, 2019

We created a deployment script for deploying the TestBot on an Azure Linux Host using Azure Pipelines. This should be configured after #1946 is merged.

Set-Up

We will be using the Windows Nightly build as a starting point for our build.

  1. Make a clone of the Windows Nightly build Pipeline.

  2. Create new Application Credentials(AppId and AppPassword) and replace the pipeline variables.
    image

  3. Create a deployment user on Azure and add the credentials as build variables.
    image

  4. Disable Zip publish project on the *dotnet Publish task.
    image

  5. Add an Azure Resource group deployment task with the following settings:

image

  1. Modify the Azure CLI task "Create resources" and place the following code:

    call az bot directline create -n "$(BotName)" -g "$(BotGroup)" > "$(System.DefaultWorkingDirectory)\DirectLineCreate.json"

image

  1. Create a command line task with the following code for the git deployment

    Move $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot\DeploymentScripts\Linux\* $(System.DefaultWorkingDirectory)\tests\Microsoft.Bot.Builder.TestBot
    
    git config --global user.name "BotBuilderDotNetPipeline"
    
    git config --global user.email BotBuilderDotNet@Pipeline.com
    
    git init
    
    git add .
    
    git commit -m "add TestBot"
    
    git remote add azure https://$(AzureDeploymentUser):$(AzureDeploymentPassword)@$(BotName).scm.azurewebsites.net:443/$(BotName).git
    
    git push azure master

image

@coveralls
Copy link
Collaborator

coveralls commented May 27, 2019

Pull Request Test Coverage Report for Build 61733

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 30 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 69.198%

Files with Coverage Reduction New Missed Lines %
/libraries/Microsoft.Bot.Builder/Inspection/InspectionMiddleware.cs 11 79.07%
/libraries/Microsoft.Bot.Builder/BotState.cs 19 82.73%
Totals Coverage Status
Change from base Build 61282: -0.02%
Covered Lines: 4210
Relevant Lines: 6084

💛 - Coveralls

@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll

@ParadoxARG ParadoxARG changed the title [TestBot][Linux] Deploy TestBot on Azure using Azure Pipelines [TestBot][Linux] Deploy on Azure using Azure Pipelines May 28, 2019
@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll

@cleemullins cleemullins merged commit a5f878f into master May 29, 2019
@cleemullins cleemullins deleted the feature/azure-linux-host-deployment branch May 29, 2019 18:10
@BruceHaley
Copy link
Contributor

Completed: Run-DotNet-Functional-Tests-Linux https://fuselabs.visualstudio.com/SDK_v4/_release?definitionId=46&_a=releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants