Jenkins - Remove unwanted console output lines
<p>I am new with Jenkins and would like to know:</p>

<p>1st) What would be the better practice to run a shell script? Paste the entire script in "<strong>Execute shell on remote script</strong>"? Or call the sh /root/script.sh script?</p>

<p>2nd) When I launch a script in "<strong>Run shell script on remote</strong>" it returns me all lines of script in console output:</p>

<p><strong>SCRIPT:</strong></p>

<pre><code>#!/bin/bash                                                                                  
set +x
ONE=1
echo $ONE
</code></pre>

<p><strong>CONSOLE OUTPUT:</strong></p>

<pre><code>#!/bin/bash                                                                                  
set +x
ONE=1
echo $ONE
1
[SSH] exit-status: 0
Finished: SUCCESS
</code></pre>

<p>In the shell local console command <code>set + x</code> usually works.</p>