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
# Ensures that a locally-installed version of an NPM package will always be | |
# preferred over a globally installed version, and that we can run that | |
# package's executable like any other binary. To ensure a rogue package cannot | |
# install an executable that could shadow another binary (ie: 'ssh') make sure | |
# that $(npm bin) is appended rather than prepended to your existing $PATH. | |
export PATH="$PATH:$(npm bin)" |
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
script { | |
while (true) { | |
def cmd = input(message: 'Jenkins Interactive Shell', parameters: [ | |
string(name: 'cmd', description: 'Enter a command or leave blank to continue job.', defaultValue: '') | |
], ok: 'Execute') | |
if (cmd == '') { print 'Continuing job...'; break; } | |
try { sh cmd } catch (err) { } | |
} | |
} |