Commit f8a72e5c by Calen Pennington

Merge pull request #1932 from edx/feature/e0d/flexible-base.sh

flexible org repos parsing tested locally
parents 5e0afc63 9ee246e4
##
## requires >= 1.3.0 of the Jenkins git plugin
##
function github_status {
gcli status create edx mitx $GIT_COMMIT \
if [[ ! ${GIT_URL} =~ git@github.com:([^/]+)/([^\.]+).git ]]; then
echo "Cannot parse Github org or repo from URL, using defaults."
ORG="edx"
REPO="mitx"
else
ORG=${BASH_REMATCH[1]}
REPO=${BASH_REMATCH[2]}
fi
gcli status create $ORG $REPO $GIT_COMMIT \
--params=$1 \
target_url:$BUILD_URL \
description:"Build #$BUILD_NUMBER is running" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment