-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🦅 Enable TSA Per Requirement ✈️ (#1975)
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"instanceUrl": "https://devdiv.visualstudio.com/", | ||
"template": "TFSDEVDIV", | ||
"projectName": "DEVDIV", | ||
"areaPath": "DevDiv\\NET Tools\\SDK", | ||
"iterationPath": "DevDiv", | ||
"notificationAliases": [ "[email protected]" ], | ||
"repositoryName":"vscode-dotnet-runtime", | ||
"codebaseName": "vscode-dotnet-runtime" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1cd3b7b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is a better file to use yami # This YAML file configures the Azure Pipeline for our project.
extends:
Ensure this path is correct and accessible
file: path/to/your/template.yml
policheck:
enabled: true
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml
tsa:
enabled: true
stages:
jobs:
job: Build
displayName: "Build Job"
steps:
script: |
echo "Building the project"
if [ $? -ne 0 ]; then
echo "Build failed" >&2
exit 1
fi
displayName: "Execute Build Script"
task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
displayName: "Publish Build Artifacts"
Example of an additional step
displayName: "Run Tests"
job: Deploy
dependsOn: Build
steps:
echo "Deploying the project"
Add deployment steps here
if [ $? -ne 0 ]; thenecho "Deployment failed" >&2
exit 1
fi
displayName: "Execute Deployment Script"
Error handling and notifications
jobs:
displayName: "Error Handling Job"
condition: failed()
steps:
echo "An error occurred during the pipeline execution."
Send notifications or perform error handling tasks
exit 1displayName: "Handle Errors"
Auto-Update mechanism (Placeholder for actual logic)
jobs:
displayName: "Auto-Update Job"
steps:
echo "Checking for script updates..."
Implement actual update logic here
echo "Script is up to date."displayName: "Check for Updates"
Send feedback (Placeholder for actual logic)
jobs:
displayName: "Send Feedback Job"
steps:
echo "Sending feedback..."
Implement feedback sending logic here
echo "Feedback sent successfully."displayName: "Send Feedback"