Sha256: a5a6ea1a00ab69fd1a72577a1d91d8844b3cef3321acc8b6a4533f6ef9f29e57
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
token "token" # ssl_verify false target "jenkins" do hook_type [:push] url "http://targethost.dev/job/JobName" http_method :post parameter_type :query params key1: "value1", key2: "value2" match ->(event) { event.ref =~ /master/ } end target "json_params" do hook_type [:push, :pull_request] url "http://targethost.dev/job/JobName" http_method :post parameter_type :json params key1: "value1", key2: "value2" match ->(event) { case event when Octogate::Event::PullRequest event.try(:pull_request).try(:head).try(:ref) =~ /json_params/ when Octogate::Event::Push event.ref =~ /json_params/ end } end target "block params" do hook_type [:push, :pull_request] url "http://targethost.dev/job/JobName" http_method :post parameter_type :query params ->(event) { {ref: event.ref, head_commit_id: event.head_commit.id} } match ->(event) { event.ref =~ /block_parameters/ } end target "basic auth" do hook_type [:push, :pull_request] url "http://targethost.dev/job/JobName" http_method :post username "username_sample" password "password_sample" parameter_type :query params key1: "value1", key2: "value2" match ->(event) { event.ref =~ /basic_auth/ } end target "always" do hook_type [:push, :pull_request] url "http://targethost.dev/job/JobName" http_method :post params always: "true" end target "always_push_only" do url "http://targethost.dev/job/JobName" http_method :post params always: "push_only" end target "never" do hook_type [:push, :pull_request] url "http://targethost.dev/job/JobName" http_method :post params never: "true" match false end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.2.1 | spec/config_sample.rb |
octogate-0.2.0 | spec/config_sample.rb |