Skip to content

Commit

Permalink
Fix broken links in help (#66)
Browse files Browse the repository at this point in the history
* Fix broken links in help

* Use modern Javadoc URLs

* Link to plugin documentation instead of wiki

The wiki page redirects to the plugin site page already.

---------

Co-authored-by: Mark Waite <[email protected]>
  • Loading branch information
orgads and MarkEWaite authored Mar 11, 2024
1 parent 8503a59 commit 4d055c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ You can always use *approved methods*, but you can use *non-approved methods* on
Methods returning non-primitive objects aren't approved.
The groovy postbuild plugin doesn't ensure that the methods of the returned object are safe.

- `build` - the current build - [javadoc](https://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.html)
- `hudson` - the current controller instance - [javadoc](https://javadoc.jenkins-ci.org/hudson/model/Hudson.html)
- `listener` - the build listener - [javadoc](https://javadoc.jenkins-ci.org/hudson/model/BuildListener.html)
- `build` - the current build - [javadoc](https://javadoc.jenkins.io/hudson/model/AbstractBuild.html)
- `jenkins` - the current controller instance - [javadoc](https://javadoc.jenkins.io/jenkins/model/Jenkins.html)
- `listener` - the build listener - [javadoc](https://javadoc.jenkins.io/hudson/model/BuildListener.html)

#### Environment variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Executes a groovy script in the Jenkins JVM. Typically, the script checks some conditions and changes accordingly the build result, puts badges next to the build in the build history and/or displays information on the build summary page.
<br/>The groovy script can use the variable <i>manager</i>, which provides access to the following objects and methods:
<ul>
<li><code>hudson</code> - the current Hudson instance (<a href="http://javadoc.jenkins-ci.org/?hudson/model/Hudson.html">javadoc</a>).</li>
<li><code>build</code> - the current build (<a href="http://javadoc.jenkins-ci.org/?hudson/model/AbstractBuild.html">javadoc</a>).</li>
<li><code>listener</code> - the build listener (<a href="http://javadoc.jenkins-ci.org/?hudson/model/BuildListener.html">javadoc</a>).</li>
<li><code>jenkins</code> - the current Jenkins instance (<a href="https://javadoc.jenkins.io/jenkins/model/Jenkins.html">javadoc</a>).</li>
<li><code>build</code> - the current build (<a href="http://javadoc.jenkins.io/hudson/model/AbstractBuild.html">javadoc</a>).</li>
<li><code>listener</code> - the build listener (<a href="http://javadoc.jenkins.io/hudson/model/BuildListener.html">javadoc</a>).</li>
<P/>
<li><code>contains(file, regexp)</code> - returns true if the given file contains a line matching <i>regexp</i>.</li>
<li><code>logContains(regexp)</code> - returns true if the build log file contains a line matching <i>regexp</i>.</li>
Expand Down Expand Up @@ -43,6 +43,6 @@
<li>The script also has two ways of accessing environment variables. The first one is a quick and dirty one time access if you needed
only one variable. You could do that with <code>manager.envVars["variable"]</code>.</li>
<li>If you wanted to get a hashmap of the entire environment, use <code> def environment = manager.getEnvVars()</code> and simply use environment as a hash map.</li>
See <a href="https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin">Jenkins Wiki</a> for more information.
See <a href="https://plugins.jenkins.io/groovy-postbuild/">plugin documentation</a> for more information.
</div>
</l:ajax>

0 comments on commit 4d055c3

Please sign in to comment.