Skip to content

Instantly share code, notes, and snippets.

View thoraxe's full-sized avatar

Erik Jacobs thoraxe

View GitHub Profile
namespace :ipblocker do
# send email with list of users that have visited more than N times yesterday
desc "This task will send an email to the specified address(es) with a list of Visitors who exceeded N visits on date (default is yesterday, format YYYY-MM-DD)"
task :email_alerts, :address, :limit, :date, :needs => :environment do |t, args|
args.with_defaults(:address => "root@localhost", :limit => 150, :date => Date.yesterday.to_s)
puts "Limit: " + args.limit.to_s
@limit = args.limit.to_i
@address = args.address
@date = args.date
Started by user Jenkins System Builder
Building remotely on rubytestbldr in workspace ruby-1.9/ci/jenkins/workspace/rubytest-build
Checkout:rubytest-build / ruby-1.9/ci/jenkins/workspace/rubytest-build - hudson.remoting.Channel@59e18676:rubytestbldr
Using strategy: Default
Last Built Revision: Revision 0ed5a8c262d6dfafa77742528a06817ea201d13e (origin/HEAD, origin/master)
Checkout:rubytest-build / ruby-1.9/ci/jenkins/workspace/rubytest-build - hudson.remoting.LocalChannel@27aa538a
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from ssh://2b11db9734924aa398cf0bb86af25fe3@rubytest-ejacobs.paas.rdu.salab.redhat.com/~/git/rubytest.git/
Seen branch in repository origin/HEAD
#### bundle install
[thoraxe@t510dora rubytest]$ bundle install
Using builder (3.0.4)
Using ci_reporter (1.8.4)
Using diff-lcs (1.2.4)
Using rack (1.4.4)
Using rack-protection (1.3.2)
Using rack-test (0.6.2)
Using rspec-core (2.13.1)
Using rspec-expectations (2.13.0)
@thoraxe
thoraxe / gist:6009375
Created July 16, 2013 14:44
jenkins build failure on openshift 1.2 with ruby 1.9 cartridge
Started by user Jenkins System Builder
Building remotely on sinatratestbldr in workspace /var/lib/openshift/51e55816758537b5d6000008/app-root/runtime/repo
Checkout:repo / /var/lib/openshift/51e55816758537b5d6000008/app-root/runtime/repo - hudson.remoting.Channel@8ec1b1e4:sinatratestbldr
Using strategy: Default
Checkout:repo / /var/lib/openshift/51e55816758537b5d6000008/app-root/runtime/repo - hudson.remoting.LocalChannel@b77f094c
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from ssh://51e55031758537bf02000001@sinatratest-ejacobs.paas.rdu.salab.redhat.com/~/git/sinatratest.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
@thoraxe
thoraxe / gist:6009398
Created July 16, 2013 14:46
rake test failure when running locally
$ rake ci:setup:rspec spec RAILS_ENV=test
rm -rf spec/reports
/usr/bin/ruby -S rspec ./spec/test_spec.rb
F
Failures:
1) Hello World says hello
Failure/Error: page.should have_content('hello')
expected #has_content?("hello") to return true, got false
@thoraxe
thoraxe / git_push
Created August 28, 2013 14:10
failure in pushing sinatra to openshift online
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
Started by user Jenkins System Builder
Building remotely on sinatrabldr in workspace /var/lib/openshift/522a2cd15973ca462800008f/app-root/runtime/repo
Checkout:repo / /var/lib/openshift/522a2cd15973ca462800008f/app-root/runtime/repo - hudson.remoting.Channel@1be1b0a:sinatrabldr
Using strategy: Default
Last Built Revision: Revision 74d1175680c588006192ca54952cedcf7ef9d863 (origin/HEAD, origin/master)
Checkout:repo / /var/lib/openshift/522a2cd15973ca462800008f/app-root/runtime/repo - hudson.remoting.LocalChannel@9dd554
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from ssh://521e016e50044629f4000085@sinatra-ejacobs.rhcloud.com/~/git/sinatra.git
Seen branch in repository origin/HEAD
Started by user Jenkins System Builder
Building remotely on sinatrabldr in workspace /var/lib/openshift/522a35dd758537a81d0000bc/app-root/runtime/repo
Checkout:repo / /var/lib/openshift/522a35dd758537a81d0000bc/app-root/runtime/repo - hudson.remoting.Channel@2eef4e0f:sinatrabldr
Using strategy: Default
Checkout:repo / /var/lib/openshift/522a35dd758537a81d0000bc/app-root/runtime/repo - hudson.remoting.LocalChannel@4b46f67a
Cloning the remote Git repository
Cloning repository origin
[agent]
pluginsync = true
report = true
ignoreschedules = true
daemon = false
ca_server = <%= @host.puppet_ca_server %>
certname = <%= @host.certname %>
environment = <%= @host.environment %>
server = <%= @host.puppetmaster %>
Processing by Katello::ContentViewDefinitionsController#publish_setup as HTML
Parameters: {"id"=>"1"}
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/layouts/tupane_layout.html.haml (0.3ms)
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/content_view_definitions/_publish.html.haml (7.3ms)
Completed 200 OK in 25ms (Views: 8.1ms | ActiveRecord: 3.0ms)
Processing by Katello::ContentViewDefinitionsController#default_label as */*
Parameters: {"name"=>"Initial RHEL", "_"=>"1395079130654"}
Rendered text template (0.0ms)
Completed 200 OK in 19ms (Views: 1.4ms | ActiveRecord: 3.1ms)
Processing by Katello::ContentViewDefinitionsController#publish as */*