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 [email protected].
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 via email to