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

Commit dd7e8c6

Browse files
committed
fix regex for image replacement in pipeline
1 parent 72d140c commit dd7e8c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vars/deployPlannerSnapshot.groovy

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

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

3535
if (!yaml.contains(newImageName)){

0 commit comments

Comments
 (0)