aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2019-04-15 16:47:59 -0400
committerGitHub <noreply@github.com>2019-04-15 16:47:59 -0400
commit78ca85cfe63998b47a1b15346fee93ec59057cbf (patch)
tree516f710409700e1bf5d471f79cb5a4871f44e5e9 /hooks
parent01957741c8bb74cec6e72c734ba0b8589efa1f72 (diff)
downloadjscu_refactor-78ca85cfe63998b47a1b15346fee93ec59057cbf.tar.gz
Self test capability attempt (#44)
* Add access_env_var.sh script Remove @Library directive after successfull CI test. * Clean up * Hook script to operate only on Jenkinsfile
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/pre-commit2
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index f4522e4..02ad1c1 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -1,3 +1,5 @@
+#!/usr/bin/env bash
+
printf "[pre-commit hook] Updating branch reference in Jenkinsfile.test to allow self-testing... "
branch=$(git rev-parse --abbrev-ref HEAD)
sed -i "s/utils@.*'/utils@${branch}'/" Jenkinsfile