mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 00:55:59 +00:00
and fix for ant.html when inside a /view/. Both now use a *checkout*
URL from dev.java.net (as maven.html already did).. how can we use
${rootURL} in (static html) help files?
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16859 71c3de6d-444a-0410-be80-ed276b4c234a
15 lines
751 B
HTML
15 lines
751 B
HTML
<div>
|
|
For projects that use Maven as the build system. This causes Hudson to
|
|
invoke Maven with the given goals and options. A non-zero exit code from
|
|
Maven makes Hudson mark the build as a failure.
|
|
Some Maven versions have a bug where it doesn't return the exit code correctly.
|
|
|
|
<p>
|
|
Hudson passes <a href="https://hudson.dev.java.net/source/browse/*checkout*/hudson/trunk/hudson/main/war/resources/env-vars.html" target="_new">
|
|
various environment variables</a> to Maven, which you can access from Maven as "${env.VARIABLENAME}".
|
|
|
|
<p>
|
|
The same variables can be used in command-line arguments (as if you are invoking this from shell).
|
|
For example, you can specify <tt>-DresultsFile=${WORKSPACE}/${BUILD_TAG}.results.txt</tt>
|
|
</div>
|