Skip to content

Instantly share code, notes, and snippets.

Avatar

Juan Lagostena jplagostena

  • Ciudad de Buenos Aires, Argentina
View GitHub Profile
View HerokuDatasourceParser.java
package ar.edu.undav.ejemplo.config;
/**
* Juan Lagostena on 30/12/16
* .
*/
public class HerokuDatasourceParser {
public static final String SEPARATOR = ":";
public static final String SLASH = "/";
@jplagostena
jplagostena / Jenkinsfile
Created Oct 21, 2016
Jenkinsfile + Slack: avisa solo cuando cambio el estado del build
View Jenkinsfile
#!groovy
stage 'build and tests'
def project
def slack
node {
def workspace = pwd()
slack = load "${workspace}@script/slack.groovy"
@jplagostena
jplagostena / clean_branches.sh
Created Oct 5, 2016
Pequeño script para limpiar branches ya mergeados y referencias que ya no existen
View clean_branches.sh
#!/usr/bin/env bash
BRANCHES_TO_FILTER="master|development"
MERGED_BRANCHES=$(git branch --merged | egrep -v "(^\*|$BRANCHES_TO_FILTER)")
if [ "$MERGED_BRANCHES" == "" ]; then
echo "No hay branches sin mergear"
exit 0
fi