Is there any difference between "shell" and "sh"?

13 views
Skip to first unread message

dandeliondodgeball

unread,
Oct 4, 2017, 4:45:20 PM10/4/17
to Jenkins Users
Is one preferred / better?

dandeliondodgeball

unread,
Oct 4, 2017, 5:02:56 PM10/4/17
to Jenkins Users
Sorry, as I sort of have an online conversation with myself.

I guess "shell" isn't the same as running something from the command line.

pipeline {
agent any
stages {
stage('ViewArchive') {
steps {
// Works
sh 'unzip -l packages/archive.zip'

/* Doesn't work
script {
unzip -l packages/archive.zip
}
                */

dandeliondodgeball

unread,
Oct 4, 2017, 5:08:55 PM10/4/17
to Jenkins Users
Sorry, meant "script" and "sh".

Victor Martinez

unread,
Oct 4, 2017, 5:28:30 PM10/4/17
to Jenkins Users
Reply all
Reply to author
Forward
0 new messages