Skip to content

Commit

Permalink
Script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SDawley committed Nov 29, 2022
1 parent 740857d commit a907518
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 17 deletions.
14 changes: 7 additions & 7 deletions scripts/GAReleasePrep.sh
Expand Up @@ -10,12 +10,11 @@ Help () {

if [[ $# -lt 2 ]]; then Help; exit; fi

while getopts "v" opt
do
case $opt in
v) STREAM="${OPTARG}";;
i) PREV_ISSUE="${OPTARG}";;
\?) Help; exit;;
while [[ "$#" -gt 0 ]]; do
case $1 in
'-v') STREAM=$(echo $2|tr -d ' '); shift 2;;
'-i') PREV_ISSUE=$(echo $2|tr -d ' '); shift 2;;
'-h') Help; exit;;
esac
done

Expand All @@ -30,7 +29,7 @@ For previous bug please refer to eclipse-platform/eclipse.platform.releng.aggreg
- [ ] New & Noteworthy
- [ ] Readme file for ${STREAM}
- [ ] ${STREAM} Acknowledgements/sravanlakkimsetti
- [ ] ${STREAM} Acknowledgements
- [ ] Tips & Tricks
- [ ] Migration Guide
- [ ] SWT Javadoc bash for ${STREAM}
Expand All @@ -43,5 +42,6 @@ For previous bug please refer to eclipse-platform/eclipse.platform.releng.aggreg
"

echo "Creating Issue $TITLE"
echo "$BODY"

gh issue create --title "$TITLE" --body "$BODY" --assignee @me
73 changes: 73 additions & 0 deletions scripts/declareMilestone.sh
@@ -0,0 +1,73 @@
#! /bin/bash

Help () {
echo "
Usage: $0 -v STREAM -i IBUILD -m MILESTONE -d DATE_OF_RELEASE
Example: $0 -v 4.25 -i I20220824-1800 -m RC1 -d 2022-August-26
"
exit
}

if [[ $# -lt 4 ]]; then Help; exit; fi

while [[ "$#" -gt 0 ]]; do
case $1 in
'-v') STREAM=$(echo $2|tr -d ' '); shift 2;;
'-i') IBUILD=$(echo $2|tr -d ' '); shift 2;;
'-m') MILESTONE=$(echo $2|tr -d ' '); shift 2;;
'-d') DATE=$(echo $2|tr -d ' '); shift 2;;
'-h') Help; exit;;
esac
done

TITLE="Declare ${STREAM} ${MILESTONE}"

BODY="A \"go\" is needed from all the components below to declare this milestone.
Current Candidate
Eclipse downloads:
https://download.eclipse.org/eclipse/downloads/drops4/${IBUILD}
Build logs and/or test results (eventually):
https://download.eclipse.org/eclipse/downloads/drops4/${IBUILD}/testResults.php
Software site repository:
https://download.eclipse.org/eclipse/updates/${STREAM}-I-builds
Specific (simple) site repository:
https://download.eclipse.org/eclipse/updates/${STREAM}-I-builds/${IBUILD}
Equinox downloads:
https://download.eclipse.org/equinox/drops/${IBUILD}
---
Deadlines:
- Friday, ${DATE}, around 1 AM (Eastern): deadline for sign-off (or, by then, comment in this issue when you expect to sign-off).
- Friday, ${DATE}, around 3 AM (Eastern): promote approved build to S-${STREAM}${MILESTONE}-*, contribute to simultaneous release repo, and announce to mailing lists.
Remember to investigate and document here any failing JUnit tests.
---
- [ ] Platform:
- - [ ] Resources
- - [ ] UI
- - [ ] Debug
- - [ ] Ant
- - [ ] SWT
- - [ ] Releng
- [ ] JDT:
- - [ ] Core
- - [ ] Debug
- - [ ] UI
- [ ] PDE
- [ ] Equinox
"

echo "Creating Issue $TITLE"
echo "$BODY"

gh issue create --title "$TITLE" --body "$BODY" --assignee @me
20 changes: 10 additions & 10 deletions scripts/newReleasePrep.sh
Expand Up @@ -3,21 +3,20 @@
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
Example: $0 -v 4.25 -t 2022-09 -i 48 -p 4.24
"
exit
}

if [[ $# -lt 4 ]]; then Help; exit; fi

while getopts "v:t:i:p:" opt
do
case $opt in
v) NEXT_STREAM="${OPTARG}";;
t) NEXT_TRAIN="${OPTARG}";;
i) PREV_ISSUE="${OPTARG}";;
p) PREV_MAJOR="${OPTARG%.*}"; PREV_MINOR="${OPTARG#*.}";;
\?) Help; exit;;
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

Expand All @@ -26,7 +25,7 @@ TITLE="Preparation work for ${NEXT_STREAM} (${NEXT_TRAIN}) and open master for d
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 R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch with release version for ${PREV_MAJOR}.${PREV_MINOR}+ changes
- [ ] Move ${PREV_MAJOR}.${PREV_MINOR}-I and ${PREV_MAJOR}.${PREV_MINOR}-Y builds to R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch
- [ ] Update Parent pom and target sdk deployment jobs for R${PREV_MAJOR}_${PREV_MINOR}_maintenance branch
- [ ] Create new test jobs for ${NEXT_STREAM}
Expand All @@ -52,5 +51,6 @@ BODY="This preparation work involves the following tasks. For previous bug pleas
"

echo "Creating Issue $TITLE"
echo "$BODY"

gh issue create --title "$TITLE" --body "$BODY" --assignee @me

0 comments on commit a907518

Please sign in to comment.