Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from darxriggs/documentation-improvements
Documentation improvements
- Loading branch information
Showing
6 changed files
with
94 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<?jelly escape-by-default='true'?> | ||
<div>A jenkins plugin, which executes groovy code when an event occurs.</div> | ||
<div>This plugin executes Groovy code when an event occurs.</div> |
21 changes: 10 additions & 11 deletions
21
...resources/org/jenkinsci/plugins/globalEventsPlugin/GlobalEventsPlugin/help-classPath.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
<div> | ||
If you have some complicated code and you don't want to store it in Jenkins configuration page, | ||
you can easily extract it to groovy file, save in folder and add this folder to class path. | ||
|
||
If you have some complicated code and you don't want to store it on the Jenkins configuration page, | ||
you can extract it to a Groovy file, save this file in a folder and add this folder to the classpath. | ||
After that you will be able to import this class from your code. | ||
|
||
<p> | ||
Example: | ||
<pre><code> | ||
> cd /var/lib/jenkins | ||
> mkdir groovy_scripts | ||
> echo "class Constants { public static final int TIMEOUT = 10; }" > groovy_scripts/Constants.groovy | ||
> cd /var/lib/jenkins | ||
> mkdir groovy_scripts | ||
> echo "class Constants { public static final int TIMEOUT = 10; }" > groovy_scripts/Constants.groovy | ||
</code></pre> | ||
|
||
Now you cad add <code>/var/lib/jenkins/groovy_scripts</code> folder to classpath and do something like this: | ||
<p> | ||
Now you can add the folder <code>/var/lib/jenkins/groovy_scripts</code> to the classpath and do something like this: | ||
<pre><code> | ||
import Constants | ||
log.info Constants.TIMEOUT | ||
import Constants | ||
log.info Constants.TIMEOUT | ||
</code></pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...urces/org/jenkinsci/plugins/globalEventsPlugin/acceptance/Groovy Script - Runtime.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../org/jenkinsci/plugins/globalEventsPlugin/acceptance/Groovy Script - User Testing.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters