configure-entries.jelly 4.4 KB
Newer Older
K
kohsuke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<!--
The MIT License

Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

25 26 27
<!--
  Config page.
-->
28
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
29 30
  <st:include page="configure-common.jelly" />

31 32 33
  <p:config-trigger>
    <!-- setting to ignore upstream changes is done as a pseudo-trigger -->
    <f:optionalBlock name="maven.triggerByDependency"
34
        help="/plugin/maven-plugin/ignore-upstrem-changes.html"
35
        title="${%Build whenever a SNAPSHOT dependency is built}"
36
        checked="${h.defaultToTrue(!it.ignoreUpstremChanges())}" />
37
    <p:config-upstream-pseudo-trigger />
38
  </p:config-trigger>
39

K
kohsuke 已提交
40
  <f:section title="${%Build}">
41
    <j:set var="mavens" value="${it.descriptor.mavenDescriptor.installations}" />
42 43
    <j:if test="${empty(mavens)}">
      <!-- no maven installation is configured. this will be an error, so warn the user now -->
K
kohsuke 已提交
44
      <f:entry title="${%Maven Version}">
45
        <div class="error">
S
sogabe 已提交
46 47
          ${%Maven Version.error.1}&lt;br>
          ${%Maven Version.error.2(rootURL)}
48
        </div>
49 50
      </f:entry>
    </j:if>
51
    <j:if test="${mavens.size() gt 1}">
52
      <!-- choice not necessary if there's no choice -->
K
kohsuke 已提交
53
      <f:entry title="${%Maven Version}">
54 55 56 57 58 59 60
        <select class="setting-input" name="maven_version">
          <j:forEach var="inst" items="${mavens}">
            <f:option selected="${inst.name==it.maven.name}">${inst.name}</f:option>
          </j:forEach>
        </select>
      </f:entry>
    </j:if>
61
    <f:entry title="${%Root POM}" help="/plugin/maven-plugin/root-pom.html">
K
kohsuke 已提交
62 63
      <f:textbox name="rootPOM" value="${it.rootPOM}"
              checkUrl="'checkRootPOM?value='+escape(this.value)" />
64
    </f:entry>
65
    <f:entry title="${%Goals and options}" help="/plugin/maven-plugin/goals.html">
66 67
      <f:textbox name="goals" value="${it.userConfiguredGoals}"/>
    </f:entry>
68
    <f:advanced>
69
      <f:entry title="MAVEN_OPTS" help="/plugin/maven-plugin/maven-opts.html">
K
kohsuke 已提交
70
        <f:expandableTextbox name="mavenOpts" value="${it.mavenOpts}" />
71
      </f:entry>
72 73
      <f:optionalBlock name="maven.incrementalBuild"
                       title="${%Incremental build - only build changed modules}"
74
                       help="/plugin/maven-plugin/incremental.html"
75
                       checked="${it.isIncrementalBuild()}" />
76
      <f:optionalBlock name="maven.perModuleBuild" title="${%Build modules in parallel}" help="/plugin/maven-plugin/aggregator.html"
77
        checked="${!it.aggregatorStyleBuild}" />
78
      <f:optionalBlock name="maven.usePrivateRepository" title="${%Use private Maven repository}" help="/plugin/maven-plugin/private-repository.html"
79
        checked="${it.usesPrivateRepository()}" />
80
      <f:optionalBlock name="maven.blockBuildWhenUpstreamBuilding" title="${%Block build when dependency building}" help="/plugin/maven-plugin/block-upstream-building.html"
81
        checked="${it.blockBuildWhenUpstreamBuilding()}" />
82
    </f:advanced>
83
  </f:section>
84 85 86

  <j:invokeStatic var="reporters" className="hudson.maven.MavenReporters" method="getConfigurableList" />
  <j:if test="${!empty(reporters)}">
K
kohsuke 已提交
87
    <f:descriptorList title="${%Build Settings}"
88
                      descriptors="${reporters}"
89
                      instances="${it.reporters.toMap()}" />
90
  </j:if>
91

K
kohsuke 已提交
92
  <p:config-buildWrappers />
93
  <p:config-publishers />
K
kohsuke 已提交
94
</j:jelly>