start new:
tmux
start new with session name:
tmux new -s myname
| import org.ajoberstar.grgit.Grgit | |
| def getVersionName = { -> | |
| def stdout = new ByteArrayOutputStream() | |
| exec { | |
| commandLine 'git', 'describe', '--tags' | |
| standardOutput = stdout | |
| } | |
| return stdout.toString().trim() | |
| } |