File: start-next-version.sh

package info (click to toggle)
easymock 5.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,904 kB
  • sloc: java: 15,076; xml: 2,415; sh: 349; makefile: 4
file content (22 lines) | stat: -rwxr-xr-x 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# This script expects:
# - jira_user / jira_password to be available environment variables
# - the next version to be received as the first parameter

if [ "$1" == "" ]; then
    echo "Next version should be provided"
    exit 1
fi

set -e

version=$1

# Start the new version
mvn versions:set -DnewVersion=${version}-SNAPSHOT -Pall
mvn versions:commit -Pall

# Commit
git commit -am "Start version $version"
git push