OneBranch fixes (#6728)
* OB Fixes * Removed test pipeline --------- Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
This commit is contained in:
Родитель
91f54d67fd
Коммит
206b6f6dba
|
@ -1,19 +0,0 @@
|
|||
# Starter pipeline
|
||||
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
||||
# Add steps that build, run tests, deploy, and more:
|
||||
# https://aka.ms/yaml
|
||||
|
||||
trigger:
|
||||
- main
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- script: echo Hello, world!
|
||||
displayName: 'Run a one-line script'
|
||||
|
||||
- script: |
|
||||
echo Add other tasks to build, test, and deploy your project.
|
||||
echo See https://aka.ms/yaml
|
||||
displayName: 'Run a multi-line script'
|
|
@ -1,61 +1,43 @@
|
|||
#
|
||||
# Replaces the classic BotBuilder-DotNet-master-Signed-daily.
|
||||
#
|
||||
#variables:
|
||||
# BuildConfiguration: Release-Windows
|
||||
# TestConfiguration: Release
|
||||
# BuildPlatform: any cpu
|
||||
# MSBuildArguments: -p:PublishRepositoryUrl=true -p:GeneratePackages=true -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
|
||||
# Packaging.EnableSBOMSigning: true
|
||||
# Parameters.solution: Microsoft.Bot.Builder.sln
|
||||
## PreviewPackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
## ReleasePackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
## SDK_Dotnet_V4_org_Url: define this in Azure
|
||||
|
||||
# "name" here defines the build number format. Build number is accessed via $(Build.BuildNumber)
|
||||
#name: $(Date:yyyyMMdd).$(Build.BuildId)
|
||||
|
||||
#pool:
|
||||
# vmImage: $[ coalesce( variables['VMImage'], 'windows-2022' ) ] # or 'windows-latest'
|
||||
# demands:
|
||||
# - msbuild
|
||||
# - visualstudio
|
||||
|
||||
#trigger: none # ci trigger is set in ADO
|
||||
#pr: none # pr trigger is set in ADO
|
||||
|
||||
variables:
|
||||
BuildConfiguration: Release-Windows
|
||||
TestConfiguration: Release
|
||||
BuildPlatform: any cpu
|
||||
MSBuildArguments: -p:PublishRepositoryUrl=true -p:GeneratePackages=true -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
|
||||
Packaging.EnableSBOMSigning: true
|
||||
Parameters.solution: Microsoft.Bot.Builder.sln
|
||||
# PreviewPackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
# ReleasePackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
# SDK_Dotnet_V4_org_Url: define this in Azure
|
||||
|
||||
jobs:
|
||||
- job: Build_and_Sign
|
||||
steps:
|
||||
steps:
|
||||
- powershell: |
|
||||
# Replace {DateStamp} and {CommitHash} tokens with the actual values in vars ReleasePackageVersion and PreviewPackageVersion
|
||||
$dateStamp = (Get-Date -format "yyyyMMdd");
|
||||
$commitHash = "$(Build.SourceVersion)".SubString(0,7);
|
||||
# Replace {DateStamp} and {CommitHash} tokens with the actual values in vars ReleasePackageVersion and PreviewPackageVersion
|
||||
$dateStamp = (Get-Date -format "yyyyMMdd");
|
||||
$commitHash = "$(Build.SourceVersion)".SubString(0,7);
|
||||
|
||||
"Raw ReleasePackageVersion = $(ReleasePackageVersion)";
|
||||
$v = "$(ReleasePackageVersion)".Replace("{DateStamp}",$dateStamp).Replace("{CommitHash}",$commitHash);
|
||||
Write-Host "##vso[task.setvariable variable=ReleasePackageVersion;]$v";
|
||||
"Resolved ReleasePackageVersion = $v";
|
||||
"Raw ReleasePackageVersion = $(ReleasePackageVersion)";
|
||||
$v = "$(ReleasePackageVersion)".Replace("{DateStamp}",$dateStamp).Replace("{CommitHash}",$commitHash);
|
||||
Write-Host "##vso[task.setvariable variable=ReleasePackageVersion;]$v";
|
||||
"Resolved ReleasePackageVersion = $v";
|
||||
|
||||
"Raw PreviewPackageVersion = $(PreviewPackageVersion)";
|
||||
$ppv = "$(PreviewPackageVersion)".Replace("{DateStamp}",$dateStamp).Replace("{CommitHash}",$commitHash);
|
||||
Write-Host "##vso[task.setvariable variable=PreviewPackageVersion;]$ppv";
|
||||
"Resolved PreviewPackageVersion = $ppv";
|
||||
"Raw PreviewPackageVersion = $(PreviewPackageVersion)";
|
||||
$ppv = "$(PreviewPackageVersion)".Replace("{DateStamp}",$dateStamp).Replace("{CommitHash}",$commitHash);
|
||||
Write-Host "##vso[task.setvariable variable=PreviewPackageVersion;]$ppv";
|
||||
"Resolved PreviewPackageVersion = $ppv";
|
||||
displayName: 'Resolve package version variables'
|
||||
|
||||
- task: colinsalmcorner.colinsalmcorner-buildtasks.tag-build-task.tagBuildOrRelease@0
|
||||
displayName: 'Tag build with release and preview versions'
|
||||
inputs:
|
||||
tags: |
|
||||
Release: $(ReleasePackageVersion)
|
||||
Preview: $(PreviewPackageVersion)
|
||||
Release: $(ReleasePackageVersion)
|
||||
Preview: $(PreviewPackageVersion)
|
||||
continueOnError: true
|
||||
|
||||
- template: ci-build-steps.yml
|
||||
- template: sign-steps.yml
|
||||
|
||||
#- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
# displayName: 'Component Detection'
|
||||
# inputs:
|
||||
# failOnAlert: false
|
||||
# - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
# displayName: 'Component Detection'
|
||||
# inputs:
|
||||
# failOnAlert: false
|
||||
|
|
|
@ -15,6 +15,15 @@ variables:
|
|||
WindowsContainerImage: onebranch.azurecr.io/windows/ltsc2019/vse2022:latest # for Windows jobs
|
||||
LinuxContainerImage: cdpxlinux.azurecr.io/user/lsg-linux/lsg-yocto-project:latest # for Linux jobs
|
||||
IsOfficialBuild: True
|
||||
BuildConfiguration: Release-Windows
|
||||
TestConfiguration: Release
|
||||
BuildPlatform: any cpu
|
||||
MSBuildArguments: -p:PublishRepositoryUrl=true -p:GeneratePackages=true -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
|
||||
Packaging.EnableSBOMSigning: true
|
||||
Parameters.solution: Microsoft.Bot.Builder.sln
|
||||
# PreviewPackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
# ReleasePackageVersion: 4.8.0-preview-$(Build.BuildNumber) # Consumed by projects in Microsoft.Bot.Builder.sln. Define this in Azure to be settable at queue time.
|
||||
# SDK_Dotnet_V4_org_Url: define this in Azure
|
||||
|
||||
name: $(Date:yyyyMMdd).$(Build.BuildId)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче