From a1682bc96ce65b6b16bb86455f5d733437872b38 Mon Sep 17 00:00:00 2001 From: nvuillam Date: Sun, 6 Feb 2022 01:09:03 +0100 Subject: [PATCH] Add publish artifact task in azure pipeline doc --- CHANGELOG.md | 4 +++- README.md | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdae40c7b4..240808fc78a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `megalinter/megalinter:beta` docker image -- Doc: update images with screen records gifs +- Doc + - Update images with screen records gifs + - Add publish artifact task in azure pipelines doc - Linter versions upgrades - [terraform-fmt](https://www.terraform.io/docs/cli/commands/fmt.html) from 1.1.4 to **1.1.5** on 2022-02-03 diff --git a/README.md b/README.md index 38a2155cb7c..645a6dab78c 100644 --- a/README.md +++ b/README.md @@ -423,6 +423,7 @@ Use the following Azure Pipelines [YAML template](https://docs.microsoft.com/en- You may activate [File.io reporter](https://megalinter.github.io/reporters/FileIoReporter/) or [E-mail reporter](https://megalinter.github.io/reporters/EmailReporter/) to access detailed logs and fixed source ```yaml + # Run MegaLinter to detect linting and security issues - job: megalinter displayName: MegaLinter pool: @@ -432,6 +433,14 @@ You may activate [File.io reporter](https://megalinter.github.io/reporters/FileI docker pull megalinter/megalinter:v5 docker run -v $(System.DefaultWorkingDirectory):/tmp/lint -e GIT_AUTHORIZATION_BEARER=$(System.AccessToken) megalinter/megalinter:v5 displayName: 'MegaLinter analysis' + + # Publish the Anchore report as an artifact to Azure Pipelines + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: MegaLinter Report' + condition: succeededOrFailed() + inputs: + PathtoPublish: '$(System.DefaultWorkingDirectory)/report/' + ArtifactName: MegaLinterReport ``` ### Jenkins