Sha256: f9b0a0327d3921ec09afa05da3090cbb51142e2e23bb5e7e4a31b797aee3a392
Contents?: true
Size: 1.86 KB
Versions: 13
Compression:
Stored size: 1.86 KB
Contents
promotion_condition do name :manual plugin_id 'promoted-builds' parameters [ :users ] xml do |params| send('hudson.plugins.promoted__builds.conditions.ManualCondition') do users params[:users] end end end promotion_condition do name :self_promotion plugin_id 'promoted-builds' parameters [ :even_if_unstable ] xml do |params| send('hudson.plugins.promoted__builds.conditions.SelfPromotionCondition') do evenIfUnstable true if params[:even_if_unstable].nil? evenIfUnstable params[:even_if_unstable] end end end promotion_condition do name :parameterized_self_promotion plugin_id 'promoted-builds' parameters [ :parameter_name, :parameter_value, :even_if_unstable ] xml do |params| send('hudson.plugins.promoted__builds.conditions.ParameterizedSelfPromotionCondition') do parameterName params[:parameter_name] parameterValue true if params[:parameter_value].nil? evenIfUnstable true if params[:even_if_unstable].nil? parameterValue params[:parameter_value] evenIfUnstable params[:even_if_unstable] end end end promotion_condition do name :downstream_pass plugin_id 'promoted-builds' parameters [ :jobs, :even_if_unstable ] xml do |params| send('hudson.plugins.promoted__builds.conditions.DownstreamPassCondition') do jobs params[:jobs] || '{{Example}}-Commit' evenIfUnstable true if params[:even_if_unstable].nil? evenIfUnstable params[:even_if_unstable] end end end promotion_condition do name :upstream_promotion plugin_id 'promoted-builds' parameters [ :promotion_name ] xml do |params| send('hudson.plugins.promoted__builds.conditions.UpstreamPromotionCondition') do promotionName '01. Staging Promotion' if params[:promotion_name].nil? promotionName params[:promotion_name] end end end
Version data entries
13 entries across 13 versions & 1 rubygems