Skip to content

Instantly share code, notes, and snippets.

View jeffweiss's full-sized avatar

Jeff Weiss jeffweiss

View GitHub Profile
@jeffweiss
jeffweiss / fpm snippet
Created April 15, 2016 17:57
snippets for elixir continuous delivery pipeline
cmd = [
'fpm',
'-t deb',
'-s dir',
'-d postgresql',
'-m ' + config[:maintainer],
"-n '#{config[:product]}'",
"--prefix /opt/puppet/#{config[:product]}",
'-v ' + deb_version,
"--deb-init #{config[:product]}.init",
@jeffweiss
jeffweiss / cleanCheckout.groovy
Created February 7, 2017 19:28
Jenkins clean checkout
#!groovy
def call() {
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [[$class: 'WipeWorkspace'], [$class: 'LocalBranch']],
userRemoteConfigs: scm.userRemoteConfigs
])
}