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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

dandeliondodgeball
Is one preferred / better?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/82506476-f358-41b6-9562-a00a381aab4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

dandeliondodgeball
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
}
                */

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f7aaced-f87b-49a4-b155-3b89f2b211a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

dandeliondodgeball
In reply to this post by dandeliondodgeball
Sorry, meant "script" and "sh".

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/69c25276-d61e-43af-a790-7c9a9eed102a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Victor Martinez
Hey,

   https://jenkins.io/doc/book/pipeline/syntax/#declarative-steps explains it.

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9e15ddfb-1855-4bbb-a777-816382b74264%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.