How to copy a shell script to created job in jenkins using job dsl plugin?
<p>I have some shell script as like below</p>

<pre><code>echo $BUILD_NUMBER
echo $GIT_BRANCH
echo $SUNNY
</code></pre>

<p>How to copy the snippet to created job using dsl script?
I know we can achieve it by <code>shell(readFileFromWorkspace('build.sh'))</code></p>

<p>But is there anyway copy the script using dsl script instead of providing using a .sh file?</p>