File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 4
4
5
5
ANNOTATION_PREFIX=' yolean.se/kubernetes-kafka-'
6
6
BUILD=$( basename $0 )
7
+ REMOTE=origin
8
+ FROM=" $REMOTE /"
9
+ START=master
10
+
11
+ [ ! -z " $( git status --untracked-files=no -s) " ] && echo " Working copy must be clean" && exit 1
7
12
8
13
function annotate {
9
14
key=$1
@@ -21,12 +26,8 @@ function annotate {
21
26
esac
22
27
}
23
28
24
- git fetch
25
- git checkout origin/master
26
-
27
- echo " Working copy must be clean"
28
- [ -z " $( git status --untracked-files=no -s) " ]
29
- START_REV_GIT=$( git rev-parse --short HEAD)
29
+ git checkout ${FROM} $START
30
+ REVS=" $START :$( git rev-parse --short ${FROM} $START ) "
30
31
31
32
git checkout -b prod-yolean-$( date +" %Y%m%dT%H%M%S" )
32
33
@@ -36,13 +37,14 @@ for BRANCH in \
36
37
addon-rest \
37
38
addon-kube-events-topic
38
39
do
39
- git merge --no-ff $BRANCH -m " prod-yolean merge $BRANCH "
40
+ git merge --no-ff ${FROM} $BRANCH -m " prod-yolean merge ${FROM} $BRANCH " && \
41
+ REVS=" $REVS $BRANCH :$( git rev-parse --short ${FROM} $BRANCH ) "
40
42
done
41
43
42
44
END_BRANCH_GIT=$( git rev-parse --abbrev-ref HEAD)
43
45
44
46
for F in ./50kafka.yml ./zookeeper/50pzoo.yml ./zookeeper/51zoo.yml
45
47
do
46
- annotate fromrev $START_REV_GIT $F
48
+ annotate revs $REVS $F
47
49
annotate build $END_BRANCH_GIT $F
48
50
done
You can’t perform that action at this time.
0 commit comments