Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit b5415e0

Browse files
committed
revert custom regex
1 parent 4bc275a commit b5415e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vars/deployPlannerSnapshot.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def call(body) {
2929
}
3030

3131
yaml = flow.getUrlAsString(openShiftTemplate)
32-
yaml = Pattern.compile("${originalImageName}").matcher(yaml).replaceFirst("${newImageName}")
32+
yaml = Pattern.compile(" - image: ${originalImageName}:(.*)").matcher(yaml).replaceFirst(" - image: ${newImageName}")
33+
// yaml = Pattern.compile("${originalImageName}").matcher(yaml).replaceFirst("${newImageName}")
3334

3435
if (!yaml.contains(newImageName)){
3536
error "original image ${originalImageName} not replaced with ${newImageName} in yaml: \n ${yaml}"

0 commit comments

Comments
 (0)