Skip to content

Instantly share code, notes, and snippets.

View bgaillard's full-sized avatar

Baptiste Gaillard bgaillard

View GitHub Profile
@bgaillard
bgaillard / keybase.md
Created July 11, 2018 12:12
Keybase proof

Keybase proof

I hereby claim:

  • I am bgaillard on github.
  • I am bgaillard (https://keybase.io/bgaillard) on keybase.
  • I have a public key ASADv3031q4w7NiktrGaSSa_OIsOAkOzHoASCUfTMUzeggo

To claim this, I am signing this object:

@bgaillard
bgaillard / jenkins-cleanup-old-builds.groovy
Last active July 12, 2021 00:55
Jenkins - Cleanup old builds
import com.cloudbees.hudson.plugins.folder.*;
/**
* Utility function used to delete old builds associated to a Jenkins project.
*
* @param item the current Jenkins item to process, this can be a Folder or a Project
* @param numberOfBuildsToKeep the total number of builds to keep. Please note that one more build could be
* kept if the firt "numberOfBuildsToKeep" builds are all in failed state.
*/
def deleteOldBuilds(item, numberOfBuildsToKeep) {
@bgaillard
bgaillard / backup-glacier.sh
Created November 3, 2015 14:47
Backup utilities
#!/bin/sh
########################################################################################################################
# Amazon Glacier Backup Script
#
# Copyright @ 2015 GoMoob
# http://www.gomoob.com
# contact@gomoob.com
#
# Authors :