Created
July 25, 2023 14:23
-
-
Save JayDoubleu/64be45b6581fb554072a339ccdc2f157 to your computer and use it in GitHub Desktop.
An ADO task to establish tmate session for troubleshooting
This file contains hidden or 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
steps: | |
- task: Bash@3 | |
displayName: Life's 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