Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Conversation

@atljeremy
Copy link

@atljeremy atljeremy commented Mar 13, 2018

Adds a call to a new configuration closure named isStableBranch to allow consumers of the script to determine if a branch is stable when running a build. This is helpful for stable branches that may be dynamic in some way and need to be checked via regex. An example would be release branches, something like release-v4.5.

Ex. implementation:

ext.gitVersioner = [
  isStableBranch: { branch ->
    switch(branch) {
       case 'master': return true
       case ~/release-[\w\W]*/: return true
       default: return false
    }
  }
]

…f the script determine if a branch is stable when running a build. This is helpful for stable branches that may be a common prefix/postfix and need to be checked via regex.

Adds a call to a new closure name isStableBranch to allow consumers of the script determine if a branch is stable when running a build. This is helpful for stable branches that may be a common prefix/postfix and need to be checked via regex.

Updated method call
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant