Skip to content

Instantly share code, notes, and snippets.

View sachinrana135's full-sized avatar
🏠
Working from home

Sachin Rana sachinrana135

🏠
Working from home
View GitHub Profile
@sachinrana135
sachinrana135 / AzureBuildChangeNotificationPowerShellTask.yaml
Last active January 5, 2022 06:09
Powershell Task - Azure build change list notification on team's channel
- task: PowerShell@2
displayName: 'Notification for build change list'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: 'filePath'
filePath: '$(Build.SourcesDirectory)/{PATH_TO_YOUR_POWERSHELL_SCRIPT_FILE}'
arguments: '-webhook_url $({WEBHOOK_URL})'
errorActionPreference: SilentlyContinue
@sachinrana135
sachinrana135 / AzureBuildChangeNotificationPythonTask.yaml
Last active January 4, 2022 17:55
Python Task - Azure build change list notification on team's channel
- task: PythonScript@0
displayName: 'Notification for build change list'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
scriptSource: 'filePath'
scriptPath: '$(Build.SourcesDirectory)/{PATH_TO_YOUR_PYTHON_SCRIPT_FILE}'
arguments: '{WEBHOOK_URL}'
failOnStderr: false