You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the AddOrModernizeJenkinsFile recipe, the generated comment does not create a new line. As a result, the subsequent buildPlugin statement is appended to the comment, rather than starting on a new line.
Run the AddOrModernizeJenkinsFile recipe on a plugin with an outdated Jenkinsfile.
Expected Behavior
The recipe should add a new line and carriage return after the comment.
Actual Behavior
The comment does not create a new line, and the buildPlugin statement is appended to it.
The text was updated successfully, but these errors were encountered:
gounthar
changed the title
Jenkinsfile modification brings a strange end-of-comment
Jenkinsfile Modification: Unexpected End-of-Comment Behavior
Nov 6, 2024
Is it and issue with plugin modernizer or rewrite-jenkins ? From wat I remember we don't modify and Jenkinsfile here but just use a recipe from rewrite-jenkins
When running the
AddOrModernizeJenkinsFile
recipe, the generated comment does not create a new line. As a result, the subsequentbuildPlugin
statement is appended to the comment, rather than starting on a new line.You can see this issue in this pull request.
Reproduction Steps
AddOrModernizeJenkinsFile
recipe on a plugin with an outdated Jenkinsfile.Expected Behavior
The recipe should add a new line and carriage return after the comment.
Actual Behavior
The comment does not create a new line, and the
buildPlugin
statement is appended to it.The text was updated successfully, but these errors were encountered: