Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example of a Happo CI script for Jenkins
#!/bin/bash
# Make the whole script fail on errors
set -euo pipefail
PREVIOUS_SHA=$(git merge-base origin/master "${CIRCLE_SHA1}")
export PREVIOUS_SHA
export CURRENT_SHA="$(git rev-parse ${1-HEAD})"
export CHANGE_URL="$GERRIT_CHANGE_URL"
# Delegate to the canonical happo-ci script. It will use the env variables we have
# prepared.
$(npm bin)/happo-ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.