Skip to content

Instantly share code, notes, and snippets.

View paulmthiebauth's full-sized avatar
🌞
Hey

paulmthiebauth

🌞
Hey
  • ezCater
  • Boston, MA
View GitHub Profile
@paulmthiebauth
paulmthiebauth / Jenkinsfile
Created February 14, 2018 23:02
Jenkins Rcov Publisher MetricTarget Syntax
#The snippet generator for RcovPublisher in Jenkins is incomplete.
#When you add in metric values for desired coverage percentages, the generator doesnt provide the syntax.
#Here it is served up on a silver platter.
step([$class: 'RcovPublisher', reportDir: 'coverage/rcov', targets: [[$class: 'hudson.plugins.rubyMetrics.rcov.model.MetricTarget', metric: 'TOTAL_COVERAGE', healthy: 87, unhealthy: 86, unstable:85], [$class: 'hudson.plugins.rubyMetrics.rcov.model.MetricTarget', metric: 'CODE_COVERAGE', healthy: 87, unhealthy: 86, unstable: 85]]])
@paulmthiebauth
paulmthiebauth / gist:f1b474040ec0d003d218
Created February 11, 2015 22:34
Phase Four Hash Exercise
favorite_movies = [
{ title: 'The Big Lebowski', year_released: 1998, director: 'Joel Coen', imdb_rating: 8.2 },
{ title: 'The Shining', year_released: 1980, director: 'Stanley Kubrick', imdb_rating: 8.5 },
{ title: 'Troll 2', year_released: 1990, directory: 'Claudio Fragasso', imdb_rating: 2.5 }
]
favorite_movies.each do |movie|
puts "#{movie[:year_released]}: #{movie[:title]}"
end