Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Nov 1, 2021
1 parent 3ce1b40 commit d3f7bc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vars/jiraProcessChangeLogItems.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def call(Map config=[:]) {
println it.fromString + '; ' + it.toString
def fromTo = [it.fromString,it.toString]
switch(fromTo) {
case {it == ["Backlog","Selected for Development"]}:
def component = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.components[0]?.name
def fixVersion = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.fixVersions[0]?.name
case {it == ["Backlog","Selected for Development"]}
// def component = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.components[0]?.name
// def fixVersion = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.fixVersions[0]?.name
// def m = [
// event: "deploy-to-qa",
// component: component,
Expand All @@ -21,9 +21,9 @@ def call(Map config=[:]) {
// println json.toString()
//publishEvent(jsonEvent('{"foo":"bar"}'))
break;
case {it == ["Selected for Development","In Progress"]}:
def component = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.components[0]?.name
def fixVersion = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.fixVersions[0]?.name
case {it == ["Selected for Development","In Progress"]}
// def component = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.components[0]?.name
// def fixVersion = currentBuild.getBuildCauses()[0]?.event?.issue?.fields?.fixVersions[0]?.name
// def m = [
// event: "deploy-to-stage",
// component: component,
Expand Down

0 comments on commit d3f7bc2

Please sign in to comment.