"This stage has no steps" error when using sshagent

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      This configuration is supposed to connect to a remote machine and execute uname command.

       

      stage ('test ssh') {
         sshagent(['82d845e5-4c80-4327-9980-83844008eaa8']) {
            sh 'ssh -o StrictHostKeyChecking=no some.server.com uname -a'
         }
      }
      

      Instead I get "This stage has no steps" error.

      I've also tried to put sshagent {} inside step {} and other way around with the same result.

      Is my configuration correct? What's wrong?

       

            Assignee:
            Unassigned
            Reporter:
            Slawa Pid
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: