Sha256: 957b218578abeab9f8d41b9cc2b6a4453c87bb6ccc8f33f1e188d34f1554eac5

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

module JenkinsJob
  module BuildStep
    class PhaseJob < BasicObject
      attr_reader :name, :ignore_result_, :retries_, :abort_others_

      def initialize(name)
        @name = name
        @ignore_result_ = false
        @retries_ = 0
        @abort_others_ = false
      end

      def ignore_result(value = true)
        @ignore_result_ = value
      end

      def retries(value)
        @retries_ = value
      end

      def abort_others(value = true)
        @abort_others_ = value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 lib/rubyjobbuilderdsl/buildstep/phase_job.rb
rubyjobbuilderdsl-0.0.3 lib/rubyjobbuilderdsl/buildstep/phase_job.rb
rubyjobbuilderdsl-0.0.2 lib/rubyjobbuilderdsl/buildstep/phase_job.rb
rubyjobbuilderdsl-0.0.1 lib/rubyjobbuilderdsl/buildstep/phase_job.rb
rubyjobbuilderdsl-0.0.0 lib/rubyjobbuilderdsl/buildstep/phase_job.rb