Skip to content
This repository was archived by the owner on Jun 12, 2020. It is now read-only.
This repository was archived by the owner on Jun 12, 2020. It is now read-only.

splunk-devops-extend does not send full console output for Pipeline jobs #8

@snguyen-ith

Description

@snguyen-ith

Given the following Jenkinsfile :

{sendSplunkConsoleLog {
node {

        currentBuild.result = "SUCCESS"

        try {

            stage('Checkout'){
                checkout scm
                sh "echo foobar";    
            }

            stage('Test'){

                print "TEST Stage"
            }

            stage('Build'){

                print "BUILD Stage"
            }

            stage('Deploy'){

                print "Deploy Stage"

            }

            stage('Post-Build'){

                print "Cleanup work space and send notifications"

            }



        }
        catch (err) {

            currentBuild.result = "FAILURE"

            print "Notify Build ERROR"

            throw err
        }

    }

}

I'd expect the plugin to forward the full console output to Splunk. But when viewed in Splunk, only the output of the step sh "echo foobar"; is forwarded.

Is this intentional? Is is possible to forward the full console log?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions