Skip to content

Instantly share code, notes, and snippets.

@JayDoubleu
Created July 25, 2023 14:32
Show Gist options
  • Save JayDoubleu/ccfe45b5cc6940e1deaf1a48388fd741 to your computer and use it in GitHub Desktop.
Save JayDoubleu/ccfe45b5cc6940e1deaf1a48388fd741 to your computer and use it in GitHub Desktop.
A task to use tmate.io for troubleshooting
trigger: none
pool:
vmImage: ubuntu-latest
steps:
- task: Bash@3
displayName: Life is too short for troubleshooting
inputs:
targetType: 'inline'
script: |
set -m
sudo apt-get update && sudo apt-get -y install tmate
export TERM=xterm
python3 -c 'import pty; pty.spawn("/bin/tmate")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment