Skip to content

Commit

Permalink
chore: add --terminateotherversions when installing new stack
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoopereira committed Jan 10, 2022
1 parent 744cd3e commit a4bd305
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmf-cli/resources/template_feed/init/Builds/CD-Containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ resources:
source: CI-Publish
branch: $(Build.SourceBranch)
project: '<%= $CLI_PARAM_ProjectName %>'
trigger: true
trigger:
enabled: true

variables:
- group: Docker Variables
Expand Down Expand Up @@ -307,12 +308,11 @@ stages:
targetType: 'inline'
script: |
$packageSourceShare = "$(CandidatePackages)/Package"
Copy-Item -Path $(DATABASE_NETWORK_SHARE)/approved/Cmf.FullBackup.*.zip -Destination $packageSourceShare -Force
Copy-Item -Path $(DATABASE_NETWORK_SHARE)/approved/Cmf.FullBackup.*.zip -Destination $packageSourceShare -Force -Verbose
if (Test-Path "Configurations/EnvironmentConfigs/devopscenter.qa.json" -PathType leaf)
{
Copy-Item -Path Configurations/EnvironmentConfigs/devopscenter.qa.json -Destination $env:AGENT_TEMPDIRECTORY/node_modules/@criticalmanufacturing/portal/bin/appsettings.json -Force
}
& $env:AGENT_TEMPDIRECTORY/node_modules/@criticalmanufacturing/portal/bin/cmf-portal.exe login --token $(CustomerPortalPAT) --verbose
& $env:AGENT_TEMPDIRECTORY/node_modules/@criticalmanufacturing/portal/bin/cmf-portal.exe deploy `
--name "${{ variables.CustomerEnvironmentName }}" `
Expand All @@ -322,7 +322,8 @@ stages:
--site "${{ variables.SiteName }}" `
--target "${{ variables.DeploymentTarget }}" `
--package="${{ variables.DeploymentPackage }}" `
--replace-tokens TargetVersion=${{ variables.MESVersion }} --verbose
--replace-tokens TargetVersion=${{ variables.MESVersion }} --verbose `
--terminateOtherVersions
# Clean
- task: PostBuildCleanup@3
Expand Down
18 changes: 18 additions & 0 deletions docs/cmf/Cmf_Common_Cli_Constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@ public const string CmfPackagePresentationConfig = config.json;
#### Field Value
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')
<a name='Cmf_Common_Cli_Constants_CliConstants_DefaultOrganization'></a>
## CliConstants.DefaultOrganization Field
The default organization for naming new packages
```csharp
public const string DefaultOrganization = Cmf;
```
#### Field Value
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')
<a name='Cmf_Common_Cli_Constants_CliConstants_DefaultProduct'></a>
## CliConstants.DefaultProduct Field
the default product to name new packages
```csharp
public const string DefaultProduct = Custom;
```
#### Field Value
[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')
<a name='Cmf_Common_Cli_Constants_CliConstants_DeploymentFrameworkManifestFileName'></a>
## CliConstants.DeploymentFrameworkManifestFileName Field
The deployment framework manifest template
Expand Down
10 changes: 10 additions & 0 deletions docs/cmf/cmf.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4bd305

Please sign in to comment.