Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions jira.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

set -e

customfield_automatedTestResults=17112
customfield_componentLeadReview=15810
customfield_currentlyInIntegration=10211
customfield_integrationDate=10210
customfield_integrationPriority=12210
customfield_integrator=10110
customfield_pullFromRepository=10100
customfield_tester=10011
customfield_automatedTestResults="Automated test results"
customfield_componentLeadReview="Component Lead Review"
customfield_currentlyInIntegration="Currently in integration"
customfield_integrationDate="Integration date"
customfield_integrationPriority="Integration priority"
customfield_integrator="Integrator"
customfield_pullFromRepository="Pull from Repository"
customfield_tester="Tester"


filter_candidatesForCLR="Weekly: Candidates for CLR (not held)"
filter_candidatesForIntegration="Weekly: Candidates for Integration (not held)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
${basereq} --action getIssueList \
--jql "project = 'Moodle' \
AND issue IN (${issueslist}) \
AND ${customfield_pullFromRepository} ~ 'integration/security-testing' \
AND \"${customfield_pullFromRepository}\" ~ 'integration/security-testing' \
AND level IS NOT EMPTY \
ORDER BY priority DESC, votes DESC, 'Last comment date' ASC" \
--outputFormat 101 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
--issue ${issue} \
--transition "Mark as committed" \
--resolution "Fixed" \
--field "customfield_${customfield_currentlyInIntegration}=" \
--field "customfield_${customfield_integrationDate}=${altdate}" \
--field "${customfield_currentlyInIntegration}"= \
--field "${customfield_integrationDate}"="${altdate}" \
--comment "${altcomment}"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jq -c '.[]' ${resultfile} | while read -r json; do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_componentLeadReview}=No"
--field "${customfield_componentLeadReview}"=No
else
# CLR. Real transition to Waiting for CLR.
${basereq} --action transitionIssue \
Expand Down
38 changes: 19 additions & 19 deletions tracker_automations/continuous_manage_queues/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ function run_A2() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Continuous queues manage: Moving to current because it's important" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}"
Expand Down Expand Up @@ -172,14 +172,14 @@ function run_A3a() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold (before ${lastweekdate})" >> "${logfile}"
Expand Down Expand Up @@ -280,14 +280,14 @@ function run_B1b() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Continuous queues manage: Moving to current given we are below the threshold ($currentmin)" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current on-sync: threshold" >> "${logfile}"
Expand Down Expand Up @@ -393,13 +393,13 @@ function run_C() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"= \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Continuous queues manage: Moving out from current because it's held" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved out from current: held" >> "${logfile}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=" \
--field "customfield_${customfield_integrationPriority}=1" \
--field "${customfield_currentlyInIntegration}"= \
--field "${customfield_integrationPriority}"=1 \
--comment "${altcomment}"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "Reopen Issue" \
--field "customfield_${customfield_currentlyInIntegration}=" \
--field "customfield_${customfield_componentLeadReview}=" \
--field "${customfield_currentlyInIntegration}"= \
--field "${customfield_componentLeadReview}"= \
--comment "${comment}"
done

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_integrationDate}=" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_integrator}"= \
--field "${customfield_integrationDate}"= \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_tester}"= \
--comment "Moving this issue to current integration cycle, will be reviewed soon. Thanks for the hard work!"
${basereq} --action removeLabels \
--issue ${issue} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ while read line; do
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field "customfield_${customfield_currentlyInIntegration}=" \
# --field "${customfield_currentlyInIntegration}"= \
# --comment "Moving this reopened issue out from current integration. Please, re-submit it for integration once ready."
#
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--fixVersions "${keepversion}" \
--field "customfield_${customfield_currentlyInIntegration}=" \
--field "customfield_${customfield_automatedTestResults}=" \
--field "${customfield_currentlyInIntegration}"= \
--field "${customfield_automatedTestResults}"= \
--comment "Moving this reopened issue out from current integration. Please, re-submit it for integration once ready."
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
done < "${resultfile}"
Expand Down
24 changes: 12 additions & 12 deletions tracker_automations/normal_manage_queues/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ function run_A() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Normal queues manage: Moving to current because it's important" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: important" >> "${logfile}"
Expand Down Expand Up @@ -134,14 +134,14 @@ function run_B() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_currentlyInIntegration}=Yes" \
--field "customfield_${customfield_componentLeadReview}=No" \
--field "customfield_${customfield_integrator}=" \
--field "customfield_${customfield_tester}=" \
--field "${customfield_currentlyInIntegration}"=Yes \
--field "${customfield_componentLeadReview}"=No \
--field "${customfield_integrator}"= \
--field "${customfield_tester}"= \
--comment "Normal queues manage: Moving to current given we are below the threshold ($currentmin)" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} moved to current: threshold" >> "${logfile}"
Expand Down Expand Up @@ -175,11 +175,11 @@ function run_C() {
# that non-transitional transition and use normal update.
#${basereq} --action updateIssue \
# --issue ${issue} \
# --field="customfield_${customfield_integrator}=" --field="customfield_${customfield_integrationDate}=" --field="customfield_${customfield_currentlyInIntegration}=Yes"
# --field="${customfield_integrator}"= --field="${customfield_integrationDate}"= --field="${customfield_currentlyInIntegration}"=Yes
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_integrationPriority}=1" \
--field "${customfield_integrationPriority}"=1 \
--comment "Normal queues manage: Raising integration priority after ${waitingdays} days awaiting" \
--role "Integrators"
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue} raised integration priority" >> "${logfile}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_integrationPriority}=1"
--field "${customfield_integrationPriority}"=1
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
echo
done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_integrationPriority}=0"
--field "${customfield_integrationPriority}"=0
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
done

Expand Down Expand Up @@ -131,7 +131,7 @@ for issue in $( sed -n 's/^"\(MDL-[0-9]*\)".*/\1/p' "${resultfile}" ); do
${basereq} --action transitionIssue \
--issue ${issue} \
--transition "CI Global Self-Transition" \
--field "customfield_${customfield_integrationPriority}=0"
--field "${customfield_integrationPriority}"=0
echo "$BUILD_NUMBER $BUILD_TIMESTAMP ${issue}" >> "${logfile}"
echo
done
Expand Down
Loading