-
-
Save rtyler/6f4993999c1ff03226abb22edcb9486a to your computer and use it in GitHub Desktop.
This file contains 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
def label = input(message: 'Pick a node:', parameters: [string(defaultValue: 'docker', description: '', name: 'Node')]) | |
node(label) { | |
def lastCommand = 'ls' | |
while (true) { | |
lastCommand = input(message: 'Execute on the host:', ok: 'Run', parameters: [string(defaultValue: lastCommand, description: '', name: 'Command')]) | |
sh(returnStatus: true, script: lastCommand) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment