To perform various actions via ssh, the ssh-steps-plugin uses the functionality of the Groovy SSH tool (can it be called a library?) version 2.10.1. According to the Groovy SSH tool 2.10.1 documentation only the execute, executeSudo and shell operations have the ignoreError flag.
I created a small groovy project (UPD: The repository has been deleted, the source code can be found in the attachments JENKINS-73848-main.zip
) that directly uses the Groovy SSH tool functionality, without the Jenkins ssh-steps-plugin. I wanted to exclude ssh-steps-plugin from this "call chain" to localize the problem on the Groovy SSH tool side and I succeeded. In the example project in
src/main/groovy/SSHFileDownloader.groovy
on lines #34-35 the effect of the flag set on line #28 is shown.
Colleagues, please read my research and help with further steps =)
Judging by the user-guide documentation, the latest version of Groovy SSH tool - 2.11.2 has not changed in the ignoreError-flag part. Perhaps I should try to raise the version of Groovy SSH tool in my test project and look at the behavior. But I don't think it will have any effect.
I believe there are no problems on the ssh-steps-plugin side, and a corresponding issue for consultation should be opened in the Groovy SSH tool repository.
To perform various actions via ssh, the ssh-steps-plugin uses the functionality of the Groovy SSH tool (can it be called a library?) version 2.10.1. According to the Groovy SSH tool 2.10.1 documentation only the execute, executeSudo and shell operations have the ignoreError flag.
I created a small groovy project (UPD: The repository has been deleted, the source code can be found in the attachments JENKINS-73848-main.zip
) that directly uses the Groovy SSH tool functionality, without the Jenkins ssh-steps-plugin. I wanted to exclude ssh-steps-plugin from this "call chain" to localize the problem on the Groovy SSH tool side and I succeeded. In the example project in
on lines #34-35 the effect of the flag set on line #28 is shown.
Colleagues, please read my research and help with further steps =)
Judging by the user-guide documentation, the latest version of Groovy SSH tool - 2.11.2 has not changed in the ignoreError-flag part. Perhaps I should try to raise the version of Groovy SSH tool in my test project and look at the behavior. But I don't think it will have any effect.
I believe there are no problems on the ssh-steps-plugin side, and a corresponding issue for consultation should be opened in the Groovy SSH tool repository.