Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-29952] Updated documentation.
  • Loading branch information
jglick committed Sep 23, 2016
1 parent 32c98db commit 35a074c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -2,8 +2,8 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<p>
Environment variables are accessible from Groovy code as <code>env.VARNAME</code>.
You can write to such properties as well:
Environment variables are accessible from Groovy code as <code>env.VARNAME</code> or simply as <code>VARNAME</code>.
You can write to such properties as well (only using the <code>env.</code> prefix):
</p>
<p>
<pre>env.MYTOOL_VERSION = '1.33'
Expand Down Expand Up @@ -44,7 +44,7 @@ node {
</p>
<p>
<pre>mail to: 'devops@acme.com',
subject: "Job '$${env.JOB_NAME}' ($${env.BUILD_NUMBER}) is waiting for input",
body: "Please go to $${env.BUILD_URL} and verify the build"</pre>
subject: "Job '$${JOB_NAME}' ($${BUILD_NUMBER}) is waiting for input",
body: "Please go to $${BUILD_URL} and verify the build"</pre>
</p>
</j:jelly>

0 comments on commit 35a074c

Please sign in to comment.