Sha256: 7154d4e7f377de810e2c972c854c06619861559851e5d889400f1621534f090a
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require_relative '../lib/rubyjobbuilderdsl' builder = JenkinsJob::Builder.new builder.freestyle 'hello_mars' do shell 'echo hello mars > hello_mars-1.0.$BUILD_NUMBER.txt && gzip hello_mars-1.0.$BUILD_NUMBER.txt' end builder.view 'test' do job 'test-.*' end JenkinsJob::Deployer.new(builder).run do disable_job 'hello_mars' wipeout_workspace 'hello_mars' delete_job 'hello_mars' delete_view 'test' each do |name, xml, type| upload_view(name, xml) if type == :view upload_job(name, xml) if type == :job end groovysh 'println "hello world"' enable_job 'hello_mars' trigger_job 'hello_mars' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubyjobbuilderdsl-0.0.8 | sample/hello_mars.rb |
rubyjobbuilderdsl-0.0.6 | sample/hello_mars.rb |
rubyjobbuilderdsl-0.0.4 | sample/hello_mars.rb |