Skip to content

Instantly share code, notes, and snippets.

@grenzi
Created October 22, 2024 20:02
Show Gist options
  • Save grenzi/cefb5fb381c6881871bcf31260d61172 to your computer and use it in GitHub Desktop.
Save grenzi/cefb5fb381c6881871bcf31260d61172 to your computer and use it in GitHub Desktop.
How to fetch tabular editor 2 and use in a pipeline on azure devops
trigger:
- main
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
$TabularEditorDownloadUrl = "https://cdn.tabulareditor.com/files/TabularEditor.2.25.0.zip"
$DownloadDest = join-path (get-location) "TabularEditor.zip"
Invoke-WebRequest -Uri $TabularEditorDownloadUrl -OutFile $DownloadDest
Expand-Archive -Path $DownloadDest -DestinationPath $((get-location).Path + "/TE2")
Remove-Item $DownloadDest
$TE2BinPath = "./TE2/TabularEditor.exe"
Write-Host "##vso[task.setvariable variable=TE2BinPath;]$TE2BinPath"
displayName: Download Tabular Editor 2
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Host "Here's what was set in the previous step $Env:TE2BinPath"
displayName: Fetch Env Variable Demo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment