Skip to content

Commit

Permalink
add axion pre-release hooks to update Verison.java and rd-banner.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Nov 28, 2016
1 parent 64550dd commit 54941ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ scmVersion {
pre 'fileUpdate', [file : 'docs/_config.yml',
pattern : { v, c -> /app_version: [^\s]+/ },
replacement: { v, c -> "app_version: $v" }]
pre 'commit'
post 'push'
pre 'fileUpdate', [file : 'src/main/java/org/rundeck/client/Version.java',
pattern : { v, c -> /VERSION = "[^\s]+?"/ },
replacement: { v, c -> "VERSION = \"$v\"" }]
pre 'fileUpdate', [file : 'src/main/resources/rd-banner.txt',
pattern : { v, c -> /\(v$v\)/ },
replacement: { v, c -> "(v$v)" }]
}
}

Expand Down

0 comments on commit 54941ae

Please sign in to comment.