You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WASP/Private/Compare-JiraState.ps1
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,9 @@ function Compare-JiraState () {
46
46
}
47
47
}
48
48
}
49
+
#TODO: Tickets die in $jiraStateFileContent, aber nicht in $IssuesCurrentState sind, müssen gelöscht werden. Anschliessend extra return für diese Tickets
@@ -119,58 +119,65 @@ function Invoke-JiraObserver {
119
119
# $jiraStateFileContent <> $currentJiraStates: Vergleiche den aktuellen Stand der Tickets mit dem Jira State File und speichere die Unterschiede in einer Liste
# Falls kein DevBranch für die Software existiert (weil die Software schon nach Prod gemerged wurde), wird ein repackaging branch mit einer uuid erstellt
156
+
# Falls kein DevBranch für das Paket existiert (schon nach Prod gemerged), wird ein repackaging branch mit einer uuid erstellt
Write-Log-Message "The status of the issue $key has changed from Development to Production without going through Testing. This Action is not allowed."-Severity 3
164
+
# Doppelhopping: dev → prod, Use Case nicht erlaubt. Muss Testing durchlaufen.
Write-Log-Message "Package $key moved from $($IssuesCompareState[$key].StatusOld) to $($IssuesCompareState[$key].Status): Not allowed! Move ticket to the correct lane."-Severity 2
Write-Log-Message "Package $key moved from $($IssuesCompareState[$key].StatusOld) to $($IssuesCompareState[$key].Status): No action needed."-Severity 1
171
+
# Doppelhopping: prod -> test, Use Case nicht erlaubt. Muss Development durchlaufen.
Write-Log-Message "Package $key moved from $($IssuesCompareState[$key].StatusOld) to $($IssuesCompareState[$key].Status): Not allowed! Move ticket to the correct lane."-Severity 2
164
174
$UpdateJiraStateFile=$false
165
175
}
166
-
if ($UpdateJiraStateFile-eq$true) {
167
-
# Der Jira State File wird aktualisiert für den entsprechenden Branch
168
-
$UpdatedJiraState[$key] = [PSCustomObject]@{
169
-
Assignee=$IssuesCompareState[$key].Assignee
170
-
Status=$IssuesCompareState[$key].Status
171
-
}
176
+
177
+
if ($UpdateJiraStateFile-eq$false) {
178
+
break
172
179
}
173
-
}
180
+
}
174
181
175
182
# PHS: Branch in der Package Gallery auf prod setzen (checkout prod)
176
183
Write-Log-Message "Checkout prod branch in Package Gallery"-Severity 0
@@ -179,7 +186,9 @@ function Invoke-JiraObserver {
179
186
180
187
end {
181
188
# Aktueller Stand Jira Tickets als neues Jira state file schreiben (Stand wurde schon aktualisiert, kein neuer Request)
0 commit comments