This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your script here that logs into your git repo | |
expect "$" | |
# Echo current git branch without the dreaded *. | |
send "git rev-parse --abbrev-ref HEAD\r" | |
expect { | |
default { | |
#If current branch isn't what you want to test on, error out to ensure Jenkins recognizes problem. |