nuke icon indicating copy to clipboard operation
nuke copied to clipboard

Generation for CI/CD should abort on server if files changed

Open matkoch opened this issue 2 years ago • 1 comments

Description

Currently, generation of CI/CD files is only enabled locally. Sometimes users forget to run nuke once more to update those files and therefore the build runs with old configuration. Instead, throw an error when files have been updated.

See https://github.com/nuke-build/nuke/blob/develop/source/Nuke.Common/CI/InvokeBuildServerConfigurationGenerationAttribute.cs

Usage Example

No response

Alternative

No response

matkoch avatar Jun 27 '22 18:06 matkoch

I've noticed that when generating on Windows/macOS these files will change even when the definition does not change. This is due to changes in the Line Endings where Windows will use \r\n and Mac will use \n.

Before this could be implemented the files would need to be compared while ignoring line endings.

dansiegel avatar Jul 05 '22 18:07 dansiegel