Skip to content

Logging Output Hard to Read #89

@feyrob

Description

@feyrob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions