-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
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?
[JENKINS-53043] "This stage has no steps" error when using sshagent
Description |
Original:
This configuration is supposed to connect to a remote machine and execute uname command. {code:java} stage ('Checkout') { sshagent(['82d845e5-4c80-4327-9980-83844008eaa8']) { sh 'ssh -o StrictHostKeyChecking=no ors.nintendo.de uname -a' } } {code} 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? |
New:
This configuration is supposed to connect to a remote machine and execute uname command. {code:java} stage ('Checkout') { sshagent(['82d845e5-4c80-4327-9980-83844008eaa8']) { sh 'ssh -o StrictHostKeyChecking=no some.server.com uname -a' } } {code} 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? |
Description |
Original:
This configuration is supposed to connect to a remote machine and execute uname command. {code:java} stage ('Checkout') { sshagent(['82d845e5-4c80-4327-9980-83844008eaa8']) { sh 'ssh -o StrictHostKeyChecking=no some.server.com uname -a' } } {code} 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? |
New:
This configuration is supposed to connect to a remote machine and execute uname command. {code:java} stage ('test ssh') { sshagent(['82d845e5-4c80-4327-9980-83844008eaa8']) { sh 'ssh -o StrictHostKeyChecking=no some.server.com uname -a' } } {code} 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? |
Attachment | New: Screen Shot 2018-10-03 at 4.13.39 PM.png [ 44651 ] |
Component/s | New: blueocean-plugin [ 21481 ] | |
Component/s | Original: ssh-agent-plugin [ 17509 ] |
This is also an issue for us. Entire pipeline is broken for us at this time after upgrading due to security updates for jenkins/plugins.
Any pipeline step that includes sshagent does not execute, no errors in logs and pipeline output is indicating that no steps are present.
This was all working prior to upgrades.
When using key that requires asking for passphrase
When using key that does not require asking for passphrase