From 7fe3cd21cac9f3f2349a6cda13ef02061673b31b Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov Date: Mon, 16 Nov 2020 10:12:38 +0300 Subject: [PATCH] move up the readme stage --- .../azure-pipelines/image-generation.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/images.CI/linux-and-win/azure-pipelines/image-generation.yml b/images.CI/linux-and-win/azure-pipelines/image-generation.yml index 38aabd142..ec9ba6483 100644 --- a/images.CI/linux-and-win/azure-pipelines/image-generation.yml +++ b/images.CI/linux-and-win/azure-pipelines/image-generation.yml @@ -41,6 +41,14 @@ jobs: -VirtualNetworkSubnet $(BUILD_AGENT_SUBNET_NAME) ` -GitHubFeedToken $(GITHUB_TOKEN) + - task: PowerShell@2 + displayName: 'Output Readme file content' + inputs: + targetType: 'inline' + script: | + $docsPath = Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1 | Select-Object -First 1 + Get-Content -Path $docsPath + - task: PowerShell@2 displayName: 'Create release for VM deployment' inputs: @@ -53,14 +61,6 @@ jobs: -ImageName ${{ parameters.image_type }} ` -AccessToken $(RELEASE_TARGET_TOKEN) - - task: PowerShell@2 - displayName: 'Output Readme file content' - inputs: - targetType: 'inline' - script: | - $docsPath = Get-ChildItem -Path "images" -Include ${{ parameters.image_readme_name }} -Recurse -Depth 1 | Select-Object -First 1 - Get-Content -Path $docsPath - - task: PowerShell@2 displayName: 'Clean up resources' condition: always()