[TASK] Simplify bamboo variable to label handling 63/59063/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 8 Dec 2018 13:52:56 +0000 (14:52 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 8 Dec 2018 14:12:37 +0000 (15:12 +0100)
Intercept has been adapted, the variable to label handing
can be simplified a bit.

Resolves: #87109
Releases: master, 8.7, 7.6
Change-Id: I27255ef9f5eb515c89f5d89e7061fc473e2abec1
Reviewed-on: https://review.typo3.org/59063
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Build/bamboo/src/main/java/core/AbstractCoreSpec.java

index 827d558..06c7c2b 100644 (file)
@@ -131,8 +131,7 @@ abstract public class AbstractCoreSpec {
                     .put("repositoryDefiningWorkingDirectory", -1)
                     .put("custom", new MapBuilder()
                         .put("auto", new MapBuilder()
-                            .put("regex", "https:\\/\\/review\\.typo3\\.org\\/(#\\/c\\/)?(\\d+)")
-                            .put("label", "change-\\2\\, patchset-${bamboo.patchset}")
+                            .put("label", "change-${bamboo.changeUrl}, patchset-${bamboo.patchset}")
                             .build()
                         )
                         .put("buildHangingConfig.enabled", "false")