Merged PR 12625: Fix: Incorrectly creating new training records when canceling a TECN
Fix: Incorrectly creating new training records when canceling a TECN IDE0100 Updated pipelines to build package .zip for msdeploy.exe Related work items: #239935
This commit is contained in:
parent
55d3a96228
commit
2119b31764
@ -367,6 +367,7 @@ dotnet_diagnostic.IDE0065.severity = none # Question -
|
|||||||
dotnet_diagnostic.IDE0066.severity = none # Question - Use
|
dotnet_diagnostic.IDE0066.severity = none # Question - Use
|
||||||
dotnet_diagnostic.IDE0078.severity = none # Question - Use pattern matching (may change code meaning)
|
dotnet_diagnostic.IDE0078.severity = none # Question - Use pattern matching (may change code meaning)
|
||||||
dotnet_diagnostic.IDE0090.severity = warning # Question - Simplify new expression
|
dotnet_diagnostic.IDE0090.severity = warning # Question - Simplify new expression
|
||||||
|
dotnet_diagnostic.IDE0100.severity = error # Question - Remove redundant equality
|
||||||
dotnet_diagnostic.IDE0160.severity = warning # Question - Use block-scoped namespace
|
dotnet_diagnostic.IDE0160.severity = warning # Question - Use block-scoped namespace
|
||||||
dotnet_diagnostic.IDE0161.severity = warning # Question - Namespace declaration preferences
|
dotnet_diagnostic.IDE0161.severity = warning # Question - Namespace declaration preferences
|
||||||
dotnet_diagnostic.IDE0270.severity = none # Question - Null check can be simplified
|
dotnet_diagnostic.IDE0270.severity = none # Question - Null check can be simplified
|
||||||
|
@ -1159,8 +1159,6 @@ public class ECNController : PdfViewController {
|
|||||||
public ActionResult CancelDocument(int ecnNumber, byte currentStep, int documentType, string ecnTypeString, string comments = "") {
|
public ActionResult CancelDocument(int ecnNumber, byte currentStep, int documentType, string ecnTypeString, string comments = "") {
|
||||||
ECN ecn = ecnDMO.GetECN(ecnNumber);
|
ECN ecn = ecnDMO.GetECN(ecnNumber);
|
||||||
bool lastApproverAndLastStep = false;
|
bool lastApproverAndLastStep = false;
|
||||||
if (ecn.IsTECN && ecn.SubmitedDate is not null && currentStep >= 1)
|
|
||||||
Approve(ecnNumber, currentStep, comments, documentType, ecnTypeString);
|
|
||||||
int appoverCount = ecnDMO.SubmitForCancellation(ecnNumber, (byte)GlobalVars.WorkFLowStepNumber.Step1, (int)Session[GlobalVars.SESSION_USERID], documentType, ecnTypeString, (int)GlobalVars.TECNExpirationCancellation.Cancellation);
|
int appoverCount = ecnDMO.SubmitForCancellation(ecnNumber, (byte)GlobalVars.WorkFLowStepNumber.Step1, (int)Session[GlobalVars.SESSION_USERID], documentType, ecnTypeString, (int)GlobalVars.TECNExpirationCancellation.Cancellation);
|
||||||
if (appoverCount > 0) {
|
if (appoverCount > 0) {
|
||||||
NotifyApproversForCancellation(ecnNumber, ecn, currentStep, documentType, ecnTypeString);
|
NotifyApproversForCancellation(ecnNumber, ecn, currentStep, documentType, ecnTypeString);
|
||||||
|
@ -37,7 +37,7 @@ public class AdminDMO {
|
|||||||
foreach (SubRole sr in r.SubRoles) {
|
foreach (SubRole sr in r.SubRoles) {
|
||||||
if (sr.Inactive) {
|
if (sr.Inactive) {
|
||||||
// hide inactive roles unless parameter says otherwise
|
// hide inactive roles unless parameter says otherwise
|
||||||
if (showInactiveRoles.Equals("true") == false)
|
if (!showInactiveRoles.Equals("true"))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,7 +414,7 @@ public class AuditDMO {
|
|||||||
if (audit.OriginatorID == userId) {
|
if (audit.OriginatorID == userId) {
|
||||||
result.IsSubmitter = true;
|
result.IsSubmitter = true;
|
||||||
}
|
}
|
||||||
if (isAdmin != true) {
|
if (!isAdmin) {
|
||||||
result.IsAdmin = false;
|
result.IsAdmin = false;
|
||||||
} else {
|
} else {
|
||||||
result.IsAdmin = true;
|
result.IsAdmin = true;
|
||||||
@ -424,7 +424,7 @@ public class AuditDMO {
|
|||||||
{
|
{
|
||||||
result.RedirectToAction = true;
|
result.RedirectToAction = true;
|
||||||
}
|
}
|
||||||
if (result.IsAdmin == false && result.IsSubmitter == false) {
|
if (!result.IsAdmin && !result.IsSubmitter) {
|
||||||
result.RedirectToAction = true;
|
result.RedirectToAction = true;
|
||||||
} else {
|
} else {
|
||||||
result.UserList = GetUserList();
|
result.UserList = GetUserList();
|
||||||
|
@ -324,7 +324,7 @@ public class CorrectiveActionDMO {
|
|||||||
bool isAssignee = false;
|
bool isAssignee = false;
|
||||||
int aiIndex = 0;
|
int aiIndex = 0;
|
||||||
List<D5D6CorrectivetAction> actionItems = GetD5D6CorrectivetActions(caId).ToList();
|
List<D5D6CorrectivetAction> actionItems = GetD5D6CorrectivetActions(caId).ToList();
|
||||||
while (isAssignee == false && aiIndex < actionItems.Count) {
|
while (!isAssignee && aiIndex < actionItems.Count) {
|
||||||
D5D6CorrectivetAction actionItem = actionItems[aiIndex];
|
D5D6CorrectivetAction actionItem = actionItems[aiIndex];
|
||||||
if (actionItem.ResponsibilityOwnerID == userId && actionItem.ImplementedDate == null && actionItem.Approved) {
|
if (actionItem.ResponsibilityOwnerID == userId && actionItem.ImplementedDate == null && actionItem.Approved) {
|
||||||
isAssignee = true;
|
isAssignee = true;
|
||||||
|
@ -266,9 +266,9 @@ public class MRB_DMO {
|
|||||||
DateTime? issueStartDate = tempMRBInfo.IssueStartDate;
|
DateTime? issueStartDate = tempMRBInfo.IssueStartDate;
|
||||||
DateTime? issueEndDate = tempMRBInfo.IssueEndDate;
|
DateTime? issueEndDate = tempMRBInfo.IssueEndDate;
|
||||||
|
|
||||||
if (issueStartDate.HasValue == false)
|
if (!issueStartDate.HasValue)
|
||||||
throw new Exception("MRB Issue Start Date cannot be blank");
|
throw new Exception("MRB Issue Start Date cannot be blank");
|
||||||
if (issueEndDate.HasValue == false)
|
if (!issueEndDate.HasValue)
|
||||||
throw new Exception("MRB Issue End Date cannot be blank");
|
throw new Exception("MRB Issue End Date cannot be blank");
|
||||||
|
|
||||||
MRB mrbData = new() { MRBNumber = mrbNumber, ToolCSV = tempMRBInfo.ToolCSV, IssueStartDate = tempMRBInfo.IssueStartDate, IssueEndDate = tempMRBInfo.IssueEndDate };
|
MRB mrbData = new() { MRBNumber = mrbNumber, ToolCSV = tempMRBInfo.ToolCSV, IssueStartDate = tempMRBInfo.IssueStartDate, IssueEndDate = tempMRBInfo.IssueEndDate };
|
||||||
|
@ -166,7 +166,7 @@ public class WorkflowDMO {
|
|||||||
sqlString.Append("SELECT COUNT(*) FROM LotDisposition LD INNER JOIN Lot L ON LD.IssueID = L.IssueID ");
|
sqlString.Append("SELECT COUNT(*) FROM LotDisposition LD INNER JOIN Lot L ON LD.IssueID = L.IssueID ");
|
||||||
sqlString.Append("WHERE (PERequired = 1 OR Location = 'QDB' OR Location = 'EDB' ) AND LD.IssueID = @IssueID ");
|
sqlString.Append("WHERE (PERequired = 1 OR Location = 'QDB' OR Location = 'EDB' ) AND LD.IssueID = @IssueID ");
|
||||||
recordCount = db.Query<int>(sqlString.ToString(), new { IssueID = issueID }).Single();
|
recordCount = db.Query<int>(sqlString.ToString(), new { IssueID = issueID }).Single();
|
||||||
if ((recordCount > 0) && (allLotsAreScrap == false)) {
|
if ((recordCount > 0) && (!allLotsAreScrap)) {
|
||||||
// check if there any IG Medical products
|
// check if there any IG Medical products
|
||||||
if (recordCountForIG_MA > 0) {
|
if (recordCountForIG_MA > 0) {
|
||||||
sqlString = new StringBuilder();
|
sqlString = new StringBuilder();
|
||||||
|
@ -14,11 +14,9 @@ trigger:
|
|||||||
- "Kendo/*"
|
- "Kendo/*"
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
buildConfiguration: "Release"
|
coreVersion: "net8.0"
|
||||||
targetFrameworkVersion: "v4.8"
|
targetFrameworkVersion: "v4.8"
|
||||||
coreVersion: "na"
|
nugetSource: "https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/"
|
||||||
assemblyTitle: "Fab2ApprovalSystem"
|
|
||||||
architecture: "x64"
|
|
||||||
msBuild: "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe"
|
msBuild: "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
@ -29,18 +27,11 @@ stages:
|
|||||||
demands: Fab2ApprovalSystem-Dev
|
demands: Fab2ApprovalSystem-Dev
|
||||||
variables:
|
variables:
|
||||||
ASPNETCORE_ENVIRONMENT: "Development"
|
ASPNETCORE_ENVIRONMENT: "Development"
|
||||||
|
assemblyTitle: "Fab2ApprovalSystem"
|
||||||
configuration: "Debug"
|
configuration: "Debug"
|
||||||
jobs:
|
jobs:
|
||||||
- job: Debug
|
- job: DebugDotnet
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
|
||||||
set gitCommit=$(Build.SourceVersion)
|
|
||||||
set gitCommitSeven=%gitCommit:~0,7%
|
|
||||||
echo %gitCommitSeven%
|
|
||||||
echo ##vso[task.setvariable variable=GitCommitSeven;]%gitCommitSeven%
|
|
||||||
echo $(GitCommitSeven)
|
|
||||||
displayName: GitCommitSeven
|
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
echo BuildId: $(Build.BuildId)
|
echo BuildId: $(Build.BuildId)
|
||||||
echo Build reason: $(Build.Reason)
|
echo Build reason: $(Build.Reason)
|
||||||
@ -48,11 +39,11 @@ stages:
|
|||||||
echo Repo name: $(Build.Repository.Name)
|
echo Repo name: $(Build.Repository.Name)
|
||||||
echo Source version: $(Build.SourceVersion)
|
echo Source version: $(Build.SourceVersion)
|
||||||
echo Core version: $(CoreVersion)
|
echo Core version: $(CoreVersion)
|
||||||
echo Build configuration: $(BuildConfiguration)
|
|
||||||
echo Configuration: $(Configuration)
|
echo Configuration: $(Configuration)
|
||||||
echo Target Framework version: $(TargetFrameworkVersion)
|
echo Target Framework version: $(TargetFrameworkVersion)
|
||||||
echo Assembly title: $(AssemblyTitle)
|
echo Assembly title: $(AssemblyTitle)
|
||||||
echo MSBuild: $(msBuild)
|
echo MicrosoftBuildEngine: $(msBuild)
|
||||||
|
echo NugetSource: $(NugetSource)
|
||||||
displayName: "Echo Check"
|
displayName: "Echo Check"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
@ -71,44 +62,178 @@ stages:
|
|||||||
- script: |
|
- script: |
|
||||||
dotnet user-secrets init
|
dotnet user-secrets init
|
||||||
dotnet user-secrets set BuildNumber $(Build.BuildId)
|
dotnet user-secrets set BuildNumber $(Build.BuildId)
|
||||||
dotnet user-secrets set GitCommitSeven $(GitCommitSeven)
|
dotnet user-secrets set "GitCommit" "$(Build.SourceVersion)"
|
||||||
dotnet user-secrets list
|
dotnet user-secrets list
|
||||||
workingDirectory: Fab2ApprovalMKLink
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
displayName: "MKLink - Safe storage of app secrets"
|
displayName: "MKLink - Safe storage of app secrets"
|
||||||
|
|
||||||
- script: dotnet build --configuration $(buildConfiguration)
|
- script: dotnet build --configuration $(Configuration) --source $(NugetSource)
|
||||||
workingDirectory: Fab2ApprovalMKLink
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
displayName: "MKLink - Build"
|
displayName: "MKLink - Build"
|
||||||
|
|
||||||
- script: dotnet build --configuration $(buildConfiguration)
|
- script: dotnet build --configuration $(Configuration) --source $(NugetSource)
|
||||||
workingDirectory: Fab2ApprovalTests
|
workingDirectory: Fab2ApprovalTests
|
||||||
displayName: "Tests - Build"
|
displayName: "Tests - Build"
|
||||||
|
|
||||||
- script: dotnet test --configuration $(buildConfiguration)
|
- script: dotnet test --configuration $(Configuration)
|
||||||
workingDirectory: Fab2ApprovalTests
|
workingDirectory: Fab2ApprovalTests
|
||||||
displayName: "Tests - Test"
|
displayName: "Tests - Test"
|
||||||
|
|
||||||
- script: dotnet clean --configuration $(buildConfiguration)
|
- script: dotnet clean --configuration $(Configuration)
|
||||||
workingDirectory: Fab2ApprovalTests
|
workingDirectory: Fab2ApprovalTests
|
||||||
displayName: "Tests - Clean"
|
displayName: "Tests - Clean"
|
||||||
|
|
||||||
- script: dotnet clean --configuration $(buildConfiguration)
|
- script: dotnet clean --configuration $(Configuration)
|
||||||
workingDirectory: Fab2ApprovalMKLink
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
displayName: "MKLink - Clean"
|
displayName: "MKLink - Clean"
|
||||||
|
|
||||||
- script: echo $(Build.SourceVersion)-$(Build.BuildId)>bin_x_x_\$(Configuration)\$(CoreVersion)\win-x64\$(Build.Repository.Name).txt
|
- job: DebugMicrosoftBuildEngine
|
||||||
workingDirectory: Fab2ApprovalMKLink
|
steps:
|
||||||
displayName: "Force Fail"
|
- script: |
|
||||||
enabled: "false"
|
echo BuildId: $(Build.BuildId)
|
||||||
|
echo Build reason: $(Build.Reason)
|
||||||
|
echo Repo Id: $(Build.Repository.Id)
|
||||||
|
echo Repo name: $(Build.Repository.Name)
|
||||||
|
echo Source version: $(Build.SourceVersion)
|
||||||
|
echo Core version: $(CoreVersion)
|
||||||
|
echo Configuration: $(Configuration)
|
||||||
|
echo Target Framework version: $(TargetFrameworkVersion)
|
||||||
|
echo Assembly title: $(AssemblyTitle)
|
||||||
|
echo MicrosoftBuildEngine: $(msBuild)
|
||||||
|
echo NugetSource: $(NugetSource)
|
||||||
|
displayName: "Echo Check"
|
||||||
|
|
||||||
- script: '"$(msBuild)" /target:Restore /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(BuildConfiguration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:RestoreSources=D:/nupkg $(AssemblyTitle).csproj'
|
- script: '"$(msBuild)" /target:Restore /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:RestoreSources=$(NugetSource) $(AssemblyTitle).csproj'
|
||||||
workingDirectory: Fab2ApprovalSystem
|
workingDirectory: Fab2ApprovalSystem
|
||||||
displayName: "Framework - Restore"
|
displayName: "Framework - Restore"
|
||||||
|
|
||||||
- script: '"$(msBuild)" /target:Build /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(BuildConfiguration);TargetFrameworkVersion=$(TargetFrameworkVersion) $(AssemblyTitle).csproj'
|
- script: '"$(msBuild)" /target:Build /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) $(AssemblyTitle).csproj'
|
||||||
workingDirectory: Fab2ApprovalSystem
|
workingDirectory: Fab2ApprovalSystem
|
||||||
displayName: "Framework - Build"
|
displayName: "Framework - Build"
|
||||||
|
|
||||||
- script: '"$(msBuild)" /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:DebugSymbols=false /p:DeleteExistingFiles=true /p:DeployOnBuild=true /p:EnableUpdateAble=true /p:ExcludeApp_Data=true /p:LastUsedBuildConfiguration=$(BuildConfiguration) /p:LastUsedPlatform="Any CPU" /p:LaunchSiteAfterPublish=true /p:OutputPath="D:\$(TargetFrameworkVersion)\$(Build.Repository.Name)\$(Build.BuildId)\$(Configuration)" /p:PreCompileBeforePublish=true /p:PublishProvider=FileSystem /p:PublishUrl="D:/PublishUrl" /p:SiteUrlToLaunchAfterPublish="" /p:WDPMergeOption=DoNotMerge /p:WebPublishMethod=FileSystem $(AssemblyTitle).csproj'
|
- script: '"$(msBuild)" /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:DebugSymbols=false /p:DeleteExistingFiles=true /p:DeployOnBuild=true /p:EnableUpdateAble=true /p:ExcludeApp_Data=true /p:LastUsedconfiguration=$(Configuration) /p:LastUsedPlatform="Any CPU" /p:LaunchSiteAfterPublish=true /p:OutputPath=bin/$(Configuration) /p:PreCompileBeforePublish=true /p:PublishProvider=FileSystem /p:PublishUrl="D:/PublishUrl" /p:SiteUrlToLaunchAfterPublish="" /p:WDPMergeOption=DoNotMerge /p:WebPublishMethod=FileSystem $(AssemblyTitle).csproj'
|
||||||
workingDirectory: Fab2ApprovalSystem
|
workingDirectory: Fab2ApprovalSystem
|
||||||
displayName: "Framework - Pack"
|
displayName: "Framework - Package (.zip for msdeploy.exe)"
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: 'Copy Files to: D:\'
|
||||||
|
inputs:
|
||||||
|
Contents: "*"
|
||||||
|
SourceFolder: '$(AssemblyTitle)\bin\$(Configuration)\_PublishedWebsites\$(AssemblyTitle)_Package'
|
||||||
|
TargetFolder: 'D:\$(TargetFrameworkVersion)\$(Build.Repository.Name)\$(Build.BuildId)\$(Configuration)-$(AssemblyTitle)-Package'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- script: '"$(msBuild)" /target:Clean /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) $(AssemblyTitle).csproj'
|
||||||
|
workingDirectory: Fab2ApprovalSystem
|
||||||
|
displayName: "Framework - Clean"
|
||||||
|
|
||||||
|
- stage: Release
|
||||||
|
displayName: Release
|
||||||
|
pool:
|
||||||
|
name: MesaFabApproval
|
||||||
|
demands: Fab2ApprovalSystem
|
||||||
|
variables:
|
||||||
|
ASPNETCORE_ENVIRONMENT: "Production"
|
||||||
|
assemblyTitle: "Fab2ApprovalSystem"
|
||||||
|
configuration: "Release"
|
||||||
|
jobs:
|
||||||
|
- job: ReleaseDotnet
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
echo BuildId: $(Build.BuildId)
|
||||||
|
echo Build reason: $(Build.Reason)
|
||||||
|
echo Repo Id: $(Build.Repository.Id)
|
||||||
|
echo Repo name: $(Build.Repository.Name)
|
||||||
|
echo Source version: $(Build.SourceVersion)
|
||||||
|
echo Core version: $(CoreVersion)
|
||||||
|
echo Configuration: $(Configuration)
|
||||||
|
echo Target Framework version: $(TargetFrameworkVersion)
|
||||||
|
echo Assembly title: $(AssemblyTitle)
|
||||||
|
echo MicrosoftBuildEngine: $(msBuild)
|
||||||
|
echo NugetSource: $(NugetSource)
|
||||||
|
displayName: "Echo Check"
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
mklink /J ".vscode\.UserSecrets" "%AppData%\Microsoft\UserSecrets\f2da5035-aba9-4676-9f8d-d6689f84663d"
|
||||||
|
mklink /J "DMO" "..\Fab2ApprovalSystem\DMO"
|
||||||
|
mklink /J "Jobs" "..\Fab2ApprovalSystem\Jobs"
|
||||||
|
mklink /J "JobSchedules" "..\Fab2ApprovalSystem\JobSchedules"
|
||||||
|
mklink /J "Misc" "..\Fab2ApprovalSystem\Misc"
|
||||||
|
mklink /J "Models" "..\Fab2ApprovalSystem\Models"
|
||||||
|
mklink /J "PdfGenerator" "..\Fab2ApprovalSystem\PdfGenerator"
|
||||||
|
mklink /J "Utilities" "..\Fab2ApprovalSystem\Utilities"
|
||||||
|
mklink /J "ViewModels" "..\Fab2ApprovalSystem\ViewModels"
|
||||||
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
|
displayName: "MKLink - Symbolic Link of Type Junction"
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
dotnet user-secrets init
|
||||||
|
dotnet user-secrets set BuildNumber $(Build.BuildId)
|
||||||
|
dotnet user-secrets set "GitCommit" "$(Build.SourceVersion)"
|
||||||
|
dotnet user-secrets list
|
||||||
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
|
displayName: "MKLink - Safe storage of app secrets"
|
||||||
|
|
||||||
|
- script: dotnet build --configuration $(Configuration) --source $(NugetSource)
|
||||||
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
|
displayName: "MKLink - Build"
|
||||||
|
|
||||||
|
- script: dotnet build --configuration $(Configuration) --source $(NugetSource)
|
||||||
|
workingDirectory: Fab2ApprovalTests
|
||||||
|
displayName: "Tests - Build"
|
||||||
|
|
||||||
|
- script: dotnet test --configuration $(Configuration)
|
||||||
|
workingDirectory: Fab2ApprovalTests
|
||||||
|
displayName: "Tests - Test"
|
||||||
|
|
||||||
|
- script: dotnet clean --configuration $(Configuration)
|
||||||
|
workingDirectory: Fab2ApprovalTests
|
||||||
|
displayName: "Tests - Clean"
|
||||||
|
|
||||||
|
- script: dotnet clean --configuration $(Configuration)
|
||||||
|
workingDirectory: Fab2ApprovalMKLink
|
||||||
|
displayName: "MKLink - Clean"
|
||||||
|
|
||||||
|
- job: ReleaseMicrosoftBuildEngine
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
echo BuildId: $(Build.BuildId)
|
||||||
|
echo Build reason: $(Build.Reason)
|
||||||
|
echo Repo Id: $(Build.Repository.Id)
|
||||||
|
echo Repo name: $(Build.Repository.Name)
|
||||||
|
echo Source version: $(Build.SourceVersion)
|
||||||
|
echo Core version: $(CoreVersion)
|
||||||
|
echo Configuration: $(Configuration)
|
||||||
|
echo Target Framework version: $(TargetFrameworkVersion)
|
||||||
|
echo Assembly title: $(AssemblyTitle)
|
||||||
|
echo MicrosoftBuildEngine: $(msBuild)
|
||||||
|
echo NugetSource: $(NugetSource)
|
||||||
|
displayName: "Echo Check"
|
||||||
|
|
||||||
|
- script: '"$(msBuild)" /target:Restore /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:RestoreSources=$(NugetSource) $(AssemblyTitle).csproj'
|
||||||
|
workingDirectory: Fab2ApprovalSystem
|
||||||
|
displayName: "Framework - Restore"
|
||||||
|
|
||||||
|
- script: '"$(msBuild)" /target:Build /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) $(AssemblyTitle).csproj'
|
||||||
|
workingDirectory: Fab2ApprovalSystem
|
||||||
|
displayName: "Framework - Build"
|
||||||
|
|
||||||
|
- script: '"$(msBuild)" /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) /p:DebugSymbols=false /p:DeleteExistingFiles=true /p:DeployOnBuild=true /p:EnableUpdateAble=true /p:ExcludeApp_Data=true /p:LastUsedconfiguration=$(Configuration) /p:LastUsedPlatform="Any CPU" /p:LaunchSiteAfterPublish=true /p:OutputPath=bin/$(Configuration) /p:PreCompileBeforePublish=true /p:PublishProvider=FileSystem /p:PublishUrl="D:/PublishUrl" /p:SiteUrlToLaunchAfterPublish="" /p:WDPMergeOption=DoNotMerge /p:WebPublishMethod=FileSystem $(AssemblyTitle).csproj'
|
||||||
|
workingDirectory: Fab2ApprovalSystem
|
||||||
|
displayName: "Framework - Package (.zip for msdeploy.exe)"
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: 'Copy Files to: D:\'
|
||||||
|
inputs:
|
||||||
|
Contents: "*"
|
||||||
|
SourceFolder: '$(AssemblyTitle)\bin\$(Configuration)\_PublishedWebsites\$(AssemblyTitle)_Package'
|
||||||
|
TargetFolder: 'D:\$(TargetFrameworkVersion)\$(Build.Repository.Name)\$(Build.BuildId)\$(Configuration)-$(AssemblyTitle)-Package'
|
||||||
|
OverWrite: true
|
||||||
|
|
||||||
|
- script: '"$(msBuild)" /target:Clean /DetailedSummary /ConsoleLoggerParameters:PerformanceSummary;ErrorsOnly; /p:Configuration=$(Configuration);TargetFrameworkVersion=$(TargetFrameworkVersion) $(AssemblyTitle).csproj'
|
||||||
|
workingDirectory: Fab2ApprovalSystem
|
||||||
|
displayName: "Framework - Clean"
|
||||||
|
|
||||||
|
- script: 'echo $(Build.BuildId)-$(Build.SourceVersion)-bin_x_x_\$(Configuration)\$(CoreVersion)\win-x64\$(Build.Repository.Name).txt'
|
||||||
|
displayName: "Force Fail"
|
||||||
|
enabled: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user