Sha256: c7e08ac7b32670d2a604f4f888fa4ae85a74cd68b26c74fd6c62137bf1a08bcf
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
def pre_push_hook <<-HOOK #!/usr/bin/env ruby require 'gocd_pre_push' include GOCD_PRE_PUSH include GOCD_PRE_PUSH::PrettyPrinter gocd_server = GocdServer.with do |server| server.url = 'http://yourgocdserverurl.com' server.username = 'your_gocd_username' server.password = 'your_gocd_password' end #Don't change the pipelines path unless gocd_pre_push.yml is not present in the repo's root folder crime_found = BuildOfficer.new('gocd_pre_push.yml', gocd_server).investigate abort if crime_found HOOK end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gocd_pre_push-2.1 | templates/pre_push.rb |
gocd_pre_push-2.0.3 | templates/pre_push.rb |
gocd_pre_push-2.0.2 | templates/pre_push.rb |
gocd_pre_push-2.0 | templates/pre_push.rb |