Skip to content

Instantly share code, notes, and snippets.

@sgoger
sgoger / jira_release-notes.sh
Created November 28, 2017 08:18
Simple bash script retrieving jira releases
#!/bin/bash
############################################
################### USAGE ##################
############################################
# Mostly inspired from http://blog.tremblay.pro/2014/10/extract-release-notes-from-jira.html
#
# base_url:
# jira base URL without trailing slash (http://jira.domain.org)
# project:
# project key (PROJ)
@sgoger
sgoger / README.md
Last active November 28, 2017 08:18
SSH_AUTH_SOCK wrapper and error handling for CI usage of Docker

Description

This script allows error handling during a CI build. It launches an SSH Agent, executes your custom commands and then stops the SSH Agent. In case of an error, the script and the Agent are immediately stopped.

Usage

./run.sh "all my commands"

/!\ Note the quotes around the commands to run /!\

@sgoger
sgoger / deploy.sh
Last active August 25, 2017 14:28
Minimalistic shell deployment script
#!/bin/bash
############################################
################### USAGE ##################
############################################
# releaseWanted:
# amount of releases to keep on destination server
# 0 will keep them all
# destRootPath:
# path to project root on destination server
# fyi: a directory called "releases" will automatically be created in destRootPath