-
Notifications
You must be signed in to change notification settings - Fork 0
/
jgitflow.plugins.bash
48 lines (34 loc) · 1.16 KB
/
jgitflow.plugins.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# shellcheck shell=bash
cite about-plugin
about-plugin 'Maven jgitflow build helpers'
hotfix-start () {
about 'Helper function for starting a new hotfix'
group 'gitflow'
mvn jgitflow:hotfix-start ${JGITFLOW_MVN_ARGUMENTS}
}
hotfix-finish () {
about 'Helper function for finishing a hotfix'
group 'gitflow'
mvn jgitflow:hotfix-finish -Darguments="${JGITFLOW_MVN_ARGUMENTS}" && git push && git push origin master && git push --tags
}
feature-start () {
about 'Helper function for starting a new feature'
group 'gitflow'
mvn jgitflow:feature-start ${JGITFLOW_MVN_ARGUMENTS}
}
feature-finish () {
about 'Helper function for finishing a feature'
group 'gitflow'
mvn jgitflow:feature-finish ${JGITFLOW_MVN_ARGUMENTS}
echo -e 'REMEMBER TO CREATE A NEW RELEASE TO DEPLOY THIS FEATURE'
}
release-start () {
about 'Helper function for starting a new release'
group 'gitflow'
mvn jgitflow:release-start ${JGITFLOW_MVN_ARGUMENTS}
}
release-finish () {
about 'Helper function for finishing a release'
group 'gitflow'
mvn jgitflow:release-finish -Darguments="${JGITFLOW_MVN_ARGUMENTS}" && git push && git push origin master && git push --tags
}