~ubuntu-branches/ubuntu/wily/jenkins-matrix-project-plugin/wily

« back to all changes in this revision

Viewing changes to src/main/resources/hudson/matrix/DefaultMatrixExecutionStrategyImpl/config.groovy

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2014-10-13 08:45:47 UTC
  • Revision ID: package-import@ubuntu.com-20141013084547-ylh8yrndvb27vhe2
Tags: upstream-1.3
ImportĀ upstreamĀ versionĀ 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package hudson.matrix.DefaultMatrixExecutionStrategyImpl;
 
2
 
 
3
import hudson.matrix.MatrixConfigurationSorterDescriptor
 
4
import hudson.model.Result;
 
5
 
 
6
def f = namespace(lib.FormTagLib)
 
7
 
 
8
f.optionalBlock (field:"runSequentially", title:_("Run each configuration sequentially"), inline:true) {
 
9
    if (MatrixConfigurationSorterDescriptor.all().size()>1) {
 
10
        f.dropdownDescriptorSelector(title:_("Execution order of builds"), field:"sorter")
 
11
    }
 
12
}
 
13
 
 
14
f.optionalBlock (field:"hasTouchStoneCombinationFilter", title:_("Execute touchstone builds first"), inline:true) {
 
15
    // TODO: help="/help/matrix/touchstone.html">
 
16
    // TODO: move l10n from MatrixProject/configEntries.jelly
 
17
 
 
18
    f.entry(title:_("Filter"), field:"touchStoneCombinationFilter") {
 
19
        f.textbox()
 
20
    }
 
21
 
 
22
    f.entry(title:_("Required result"), field:"touchStoneResultCondition", description:_("required.result.description")) {
 
23
        select(name:"touchStoneResultCondition") {
 
24
            f.option(value:"SUCCESS",  selected:my.touchStoneResultCondition==Result.SUCCESS,  _("Stable"))
 
25
            f.option(value:"UNSTABLE", selected:my.touchStoneResultCondition==Result.UNSTABLE, _("Unstable"))
 
26
        }
 
27
    }
 
28
}