ghale / gradle-jenkins-plugin

Gradle plugin to programmatically configure Jenkins jobs.
123 stars 42 forks source link

Logging Output Hard to Read #89

Open feyrob opened 6 years ago

feyrob commented 6 years ago

When updating a Jenkins server it is hard to visually parse the logging output.

This is due to the current logging pattern being inconsistent.

These lines: logger.warn('Creating new item ' + item.configurableName + ' on ' + server.url) logger.warn('Updating item ' + item.configurableName + ' on ' + server.url) Have this pattern: {action} {item_name} {server_url}

While this line: logger.warn('Jenkins item ' + item.configurableName + ' has no changes to the existing item on ' + server.url) Has this pattern: {item_name} {action} {server_url}

Would it be possibly to change the last item to match the pattern of the first two?

The file that contains the logging code is this one: https://github.com/ghale/gradle-jenkins-plugin/blob/9f7ee4e58731762572444cacdedd0415e7c12b74/src/main/groovy/com/terrafolio/gradle/plugins/jenkins/tasks/UpdateJenkinsItemsTask.groovy