Skip to content

Commit

Permalink
The Workflow script publishes a "release branch" to make it easy for …
Browse files Browse the repository at this point in the history
…people to see the changelog on github.
  • Loading branch information
jan-molak committed Jan 5, 2016
1 parent 7fc65c5 commit ba8d3c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node('standard') {
def version = read_property('version', 'target/classes/build-monitor.properties');

assign_build_name version
push_release_branch_for version
}

archive_artifacts 'target/*.hpi,pom.xml'
Expand Down Expand Up @@ -110,6 +111,12 @@ def mvn (command) {
sh "${mvn_home}/bin/mvn -B -e -q ${command}"
}

def push_release_branch_for (version) {
sh "git checkout -b release-${version}"
sh "git commit -a -m \"Release candidate v${version}\""
sh "git push origin release-${version}"
}

def exec (command, description='') {
if (description) {
echo "> '${description}'"
Expand Down

0 comments on commit ba8d3c3

Please sign in to comment.