Module: Buildkite::Pipelines::Helpers::Skip

Defined in:
lib/buildkite/pipelines/helpers/skip.rb

Instance Method Summary collapse

Instance Method Details

#skipped?Boolean

A helper method to see if the step is skipped. Skipped steps are ‘true` or a non-empty string.

Returns:

  • (Boolean)


9
10
11
# File 'lib/buildkite/pipelines/helpers/skip.rb', line 9

def skipped?
  get(:skip) != false && !get(:skip).to_s.empty?
end