I am trying to write the corresponding dsl code for a jenkins job and i am stuck at Build step and don't know how to code Send Files or Execute commands over SSH.
I have tried the XML to DSL converter plugin but it is also excluding this section.
Can someone help in this?
You can use the Jenkins job DSL method: publishOverSsh to archive your goal.