Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ccac/9801833 to your computer and use it in GitHub Desktop.
Save ccac/9801833 to your computer and use it in GitHub Desktop.
def gettags = ("git ls-remote -t -h ssh://jenkins@<mygitpath>/repo/some.git feature/*").execute()
return gettags.text.readLines()
.collect { it.split()[1].replaceAll('refs/heads/', '') }
.unique()
.findAll { it.startsWith('<some more pattern>') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment