-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Blocker
-
Component/s: content-replace-plugin
-
None
-
Environment:Version plugin 1.8
Jenkins version 2.387.3
I have an issue upgrading the plugin from 1.7 to 1.8.
The following plugin configuration
contentReplace(
configs: [
fileContentReplaceConfig(
configs: [
fileContentReplaceItemConfig(
search: '(Server=)([^;]+)(;.*Database=)([^;]+)(;.*Password=)([^;]+)(;)',
replace: "\$1$server\$3$database\$5$password;",
matchCount: 1
)
],
fileEncoding: 'UTF-8',
filePath: "configFilePath"
)
]
)
will not match
<?xml version="1.0" encoding="utf-8"?> <configuration> ... <connectionStrings> <add name="DatabaseConnection" connectionString="Server=server;Database=database;User ID=sa;Password=password;MultipleActiveResultSets=True;" /> </connectionStrings> ... </configuration>
Â
It was working before the update to 1.8.
Downgrading the plugin to previous version 1.7 resolved my problem.
Â
Let me know if you need/want more details.
Â
And thanks for any help (:
- blocks
-
JENKINS-71382 contentReplace 1.8.0 generates an empty file, 1.7.0 works ok
-
- Closed
-