Skip to content

Commit

Permalink
docs: Enclose System.TeamProject in Azure Pipelines (#2131)
Browse files Browse the repository at this point in the history
Update the example to enclose System.TeamProject to prevent MegaLinter failing if the Azure DevOps project name contains spaces.
  • Loading branch information
ashokm authored Dec 18, 2022
1 parent b944ba9 commit 28035d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Add the following job in your `azure-pipelines.yaml` file
-e SYSTEM_ACCESSTOKEN=$(System.AccessToken) \
-e SYSTEM_COLLECTIONURI=$(System.CollectionUri) \
-e SYSTEM_PULLREQUEST_PULLREQUESTID=$(System.PullRequest.PullRequestId) \
-e SYSTEM_TEAMPROJECT=$(System.TeamProject) \
-e SYSTEM_TEAMPROJECT="$(System.TeamProject)" \
-e BUILD_BUILD_ID=$(Build.BuildId) \
-e BUILD_REPOSITORY_ID=$(Build.Repository.ID) \
oxsecurity/megalinter:v6
Expand Down
12 changes: 6 additions & 6 deletions docs/reporters/AzureCommentReporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Click on **MegaLinter-reports** artifact from the main job log to view or downlo

## Configuration

- The following variables must be sent to docker run command
- The following variables must be sent to the docker run command

Example:

Expand All @@ -24,7 +24,7 @@ Example:
-e SYSTEM_ACCESSTOKEN=$(System.AccessToken) \
-e SYSTEM_COLLECTIONURI=$(System.CollectionUri) \
-e SYSTEM_PULLREQUEST_PULLREQUESTID=$(System.PullRequest.PullRequestId) \
-e SYSTEM_TEAMPROJECT=$(System.TeamProject) \
-e SYSTEM_TEAMPROJECT="$(System.TeamProject)" \
-e BUILD_BUILD_ID=$(Build.BuildId) \
-e BUILD_REPOSITORY_ID=$(Build.Repository.ID) \
oxsecurity/megalinter:v6
Expand All @@ -39,7 +39,7 @@ Example:
![Screenshot](../assets/images/AzureReporterConfigContribute.jpg)
| Variable | Description | Default value |
|-----------------------------------|----------------------------------------------------------------------------------|---------------|
| AZURE_COMMENT_REPORTER | Activates/deactivates reporter | true |
| AZURE_COMMENT_REPORTER_LINKS_TYPE | Set to `build` if you want comments links to target Build and not artifacts page | `artifacts` |
| Variable | Description | Default value |
|-----------------------------------|------------------------------------------------------------------------------------|---------------|
| AZURE_COMMENT_REPORTER | Activates/deactivates reporter | true |
| AZURE_COMMENT_REPORTER_LINKS_TYPE | Set to `build` if you want comments linking to target Build and not artifacts page | `artifacts` |

0 comments on commit 28035d8

Please sign in to comment.