-
Notifications
You must be signed in to change notification settings - Fork 75
/
newReleasePrep.sh
executable file
·56 lines (48 loc) · 2.57 KB
/
newReleasePrep.sh
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
49
50
51
52
53
54
55
56
#! /bin/bash
Help () {
echo "
Usage: $0 -v NEXT_STREAM -t NEXT_TRAIN -i PREVIOUS_RELEASE_ISSUE -p PREVIOUS_STREAM
Example: $0 -v 4.25 -t 2022-09 -i 48 -p 4.24
"
exit
}
if [[ $# -lt 4 ]]; then Help; exit; fi
while [[ "$#" -gt 0 ]]; do
case $1 in
'-v') NEXT_STREAM=$(echo $2|tr -d ' '); shift 2;;
'-t') NEXT_TRAIN=$(echo $2|tr -d ' '); shift 2;;
'-i') PREV_ISSUE=$(echo $2|tr -d ' '); shift 2;;
'-p') PREV_MAJOR="${2%.*}"; PREV_MINOR="${2#*.}"; shift 2;;
'-h') Help; exit;;
esac
done
TITLE="Preparation work for ${NEXT_STREAM} (${NEXT_TRAIN}) and open master for development"
BODY="This preparation work involves the following tasks. For previous bug please refer to eclipse-platform/eclipse.platform.releng.aggregator#${PREV_ISSUE}.
- [ ] Create R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch
- [ ] Update R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch with release version for ${PREV_MAJOR}.${PREV_MINOR}+ changes
- [ ] Update JenkinsJobs for ${NEXT_STREAM}:
- - [ ] Add ${NEXT_STREAM} to JobDSL.json to create new jobs
- - [ ] Update "Brances" in JobDSL.json to move ${PREV_MAJOR}.${PREV_MINOR}-I builds to R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch
- - [ ] Add R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch to parent pom and target sdk deployment jobs
- - [ ] Update I-build triggers with dates for ${NEXT_STREAM} milestone
- [ ] Configure SWT build scripts for ${NEXT_STREAM}
- [ ] Splash Screen for ${NEXT_STREAM} (${NEXT_TRAIN})
- [ ] Create ${NEXT_STREAM}-I-builds repo
- [ ] POM and product version changes for ${NEXT_STREAM} release
- [ ] Update product version number to ${NEXT_STREAM} across build scripts
- [ ] Move previous version to ${PREV_MAJOR}.${PREV_MINOR}RC2 across build scripts
- [ ] Update version number in Mac's Eclipse.app for ${NEXT_STREAM}
- [ ] Clean forceQualifierUpdate files for doc bundles
- [ ] Cleanup approved api list
- [ ] Update builds and repo cleanup scripts for ${NEXT_STREAM}
- [ ] Update check composites script to verify ${NEXT_STREAM} repositories
- [ ] Update Comparator repo and eclipse run repo to ${NEXT_STREAM}-I-builds repo
- [ ] Version bumps for ${NEXT_STREAM} stream
- [ ] Update previous release version to ${PREV_MAJOR}.${PREV_MINOR} GA across build scripts
- [ ] Update build calendar for platform ${NEXT_STREAM} release
- [ ] Deploy ecj compiler from ${PREV_MAJOR}.${PREV_MINOR} GA and use it for ${NEXT_STREAM} M1 build
- [ ] Update generic repos I-builds, Y-builds, P-builds to point to ${NEXT_STREAM} repos
"
echo "Creating Issue $TITLE"
echo "$BODY"
gh issue create --title "$TITLE" --body "$BODY" --assignee @me