Sha256: 0e64705ac0d6ba0549a5e72581e280748aabe2f88bc22d6683ef18af42c0c9a3
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 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
5 entries across 5 versions & 1 rubygems