@@ -63,16 +63,16 @@ def flowProject(options = {})
63
63
64
64
def githubProject ( options = { } )
65
65
# chef's still stuck on ruby 1.9 (on our amazon linux)
66
- repoUser = options [ :repoUser ]
67
- repoName = options . fetch ( :repoName , nil )
68
- repoRef = options [ :repoRef ]
69
- description = options . fetch ( :description , '' )
70
- nodeRestriction = options . fetch ( :nodeRestriction , nil )
71
- params = options . fetch ( :params , [ ] )
72
- refspec = options . fetch ( :refspec , stdRefSpec )
73
- concurrent = options . fetch ( :concurrent , true )
74
- timeoutMinutesElasticDefault = options . fetch ( :timeoutMinutesElasticDefault , 150 )
75
- buildNameScript = options . fetch ( :buildNameScript , setBuildNameScript )
66
+ repoUser = options [ :repoUser ]
67
+ repoName = options . fetch ( :repoName , nil )
68
+ repoRef = options [ :repoRef ]
69
+ description = options . fetch ( :description , '' )
70
+ nodeRestriction = options . fetch ( :nodeRestriction , nil )
71
+ params = options . fetch ( :params , [ ] )
72
+ refspec = options . fetch ( :refspec , stdRefSpec )
73
+ concurrent = options . fetch ( :concurrent , true )
74
+ buildTimeoutMinutes = options . fetch ( :buildTimeoutMinutes , 150 )
75
+ buildNameScript = options . fetch ( :buildNameScript , setBuildNameScript )
76
76
77
77
jvmFlavor = options [ :jvmFlavor ]
78
78
jvmVersion = options [ :jvmVersion ]
@@ -106,12 +106,10 @@ def env(name)
106
106
</builders>
107
107
<buildWrappers>
108
108
<hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="[email protected] ">
109
- <strategy class="hudson.plugins.build_timeout.impl.ElasticTimeOutStrategy">
110
- <timeoutPercentage>300</timeoutPercentage>
111
- <numberOfBuilds>100</numberOfBuilds>
112
- <timeoutMinutesElasticDefault>#{ timeoutMinutesElasticDefault } </timeoutMinutesElasticDefault>
113
- </strategy>
114
- <operationList/>
109
+ <strategy class="hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy">
110
+ <timeoutMinutes>#{ buildTimeoutMinutes } </timeoutMinutes>
111
+ </strategy>
112
+ <operationList/>
115
113
</hudson.plugins.build__timeout.BuildTimeoutWrapper>
116
114
</buildWrappers>
117
115
EOX
0 commit comments