2019-01-22 20:21:02 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: ComponentRegistrationJob
|
2020-08-10 18:07:58 +02:00
|
|
|
variables:
|
2021-03-02 01:33:22 +01:00
|
|
|
- name: runCodesignValidationInjection
|
|
|
|
value: false
|
|
|
|
- name: NugetSecurityAnalysisWarningLevel
|
|
|
|
value: none
|
2019-01-22 20:21:02 +01:00
|
|
|
displayName: Component Registration
|
|
|
|
condition: succeeded()
|
|
|
|
|
|
|
|
pool:
|
2020-03-13 17:00:18 +01:00
|
|
|
name: Package ES Standard Build
|
2019-01-22 20:21:02 +01:00
|
|
|
|
|
|
|
steps:
|
2020-10-23 20:42:24 +02:00
|
|
|
- checkout: self
|
|
|
|
clean: true
|
2019-01-22 20:21:02 +01:00
|
|
|
|
2019-02-01 00:10:19 +01:00
|
|
|
- template: SetVersionVariables.yml
|
|
|
|
parameters:
|
|
|
|
ReleaseTagVar: $(ReleaseTagVar)
|
2019-01-22 20:21:02 +01:00
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
docker container prune --force
|
|
|
|
docker container ls --all --format '{{ json .ID }}' | ConvertFrom-Json | ForEach-Object {docker container rm --force --volumes $_}
|
|
|
|
displayName: 'Remove all containers'
|
|
|
|
# Cleanup is not critical it passes every time it runs
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
docker image ls --format '{{ json .}}'|ConvertFrom-Json| ForEach-Object {
|
|
|
|
if($_.tag -eq '<none>')
|
|
|
|
{
|
|
|
|
$formatString = 'yyyy-MM-dd HH:mm:ss zz00'
|
|
|
|
$createdAtString = $_.CreatedAt.substring(0,$_.CreatedAt.Length -4)
|
|
|
|
$createdAt = [DateTime]::ParseExact($createdAtString, $formatString,[System.Globalization.CultureInfo]::InvariantCulture)
|
|
|
|
if($createdAt -lt (Get-Date).adddays(-1))
|
|
|
|
{
|
|
|
|
docker image rm $_.ID
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exit 0
|
|
|
|
displayName: 'Remove old images'
|
|
|
|
# Cleanup is not critical it passes every time it runs
|
|
|
|
continueOnError: true
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Write-verbose "--docker info---" -verbose
|
|
|
|
docker info
|
|
|
|
Write-verbose "--docker image ls---" -verbose
|
|
|
|
docker image ls
|
|
|
|
Write-verbose "--docker container ls --all---" -verbose
|
|
|
|
docker container ls --all
|
|
|
|
displayName: 'Capture Docker Info'
|
|
|
|
# Diagnostics is not critical it passes every time it runs
|
|
|
|
continueOnError: true
|
|
|
|
|
2019-02-01 19:59:01 +01:00
|
|
|
- template: insert-nuget-config-azfeed.yml
|
2019-01-30 23:10:52 +01:00
|
|
|
|
2019-01-22 20:21:02 +01:00
|
|
|
- powershell: |
|
|
|
|
./tools/releaseBuild/vstsbuild.ps1 -ReleaseTag $(ReleaseTagVar) -Name win-x64-component-registration
|
|
|
|
displayName: 'Build Windows Universal - Component Registration'
|
|
|
|
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
|
|
displayName: 'Component Detection'
|
|
|
|
inputs:
|
|
|
|
sourceScanPath: '$(componentregistration)'
|
|
|
|
snapshotForceEnabled: true
|