Jenkins environmental variable sed
<p>I have an execute shell in Jenkins:</p>

<pre><code>export MYVAR
MYVAR=echo $JiraReleaseNotes | sed 's/\[/&lt;br&gt;\[/g'
echo MYVAR=$MYVAR &gt;&gt; ./AndroidStable/App/config.properties
</code></pre>

<p>What I'm trying to do is replace all "<code>[</code>" values with "<code>[br&gt;</code>" at <code>$JiraReleaseNotes</code> and set them to <code>MYVAR</code> and then copy the content to <code>config.properties</code> file.</p>

<p>But I get an error in second line:</p>

<pre><code>Relase: command not found
</code></pre>

<p>Which <code>Relase</code> is the first word in <code>$JiraReleaseNotes</code>, why it thinks it is a command?</p>