Sha256: 0fecfa98267ab02c45e3003d73fef9ffa33a2c0b40c9a3cffe674044909f2791

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

require 'jenkins'
require 'winci'

project_name = 'files'

cfg = Jenkins::JobConfigBuilder.new(:ruby) do |c|
  c.scm = "C:/repos/#{project_name}.git"
  c.steps = [
      # below makes sense when your Rakefile run rspec/cucumber by default
    [:build_bat_step, "bundle exec rake"],
    # this will send current code to production repo only after rspec/cucumber passed
    [:build_bat_step, "git push c:/repos/production/files.git HEAD:master"]
  ]
end

job = WinCI::Job.new project_name, cfg

# by default creates job on localhost:3010
job.create

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
winci-0.0.2 examples/basic.rb