-
Bug
-
Resolution: Fixed
-
Blocker
-
Direct Jenkins 2.74 installed via RPM on RHEL 7 64-bit machine;
JDKs installed in the system: JDK8, JDK7, JDK6
Build-Pipeline-Plugin version: 1.5.8
Splunk-Devops-Plugin: 1.6.4
Pipeline-Stage-view-Plugin: 2.9
When the Splunk Plugin and Splunk Plugin Extension (for pipeline jobs) are enabled, the stage logs are missing in the pipeline jobs. This is very simple to recreate:
- Install the required plugins so that one can create pipeline jobs. I am assuming Build Pipeline and Pipeline Stage View plugins are good enough.
- Install latest Splunk Plugin along with Splunk Plugin Extension. Configure it to be used with one Splunk instance. Now disable that once configuration is done.
- Create a simple pipeline job using below mentioned script:
++++++++++++++++++++++++++
pipeline {
agent any
options {
timeout(time: 1, unit: 'HOURS')
sendSplunkConsoleLog()
}
stages {
stage("Build"){
steps {
script {
currentBuild.displayName = "SAMPLE_PIPELINE"
currentBuild.description = "The dummy pipeline job for Splunk"
}
echo 'Sample Pipeline for Test'
}
}
stage("Deploy"){
steps {
echo 'Sample Pipeline Deployed'
}
}
stage("Testing"){
steps {
echo 'Sample Pipeline Tested'
}
}
}
}
++++++++++++++++++++++++++++++++++++++++++++
4. Trigger the sample pipeline created above. Hover over build or deploy or testing stages in the pipeline stage view and you will get logs link. Clicking on the link, you will get appropriate log message as mentioned above in the pipeline script.
5. Now enable the Splunk plugin from <Jenkins_url>/configure page.
6. Again trigger the sample pipeline. This time when you click on the stage log link, you will not see the respective log messages as per the build stage.
[JENKINS-50993] Pipeline-Stage-View Plugin is unable to show stage logs when Splunk Plugin for Jenkins is Enabled
Attachment | New: Working_when_SplunkPlugin_Disabled.png [ 42303 ] |
Attachment | New: Not_Working_SplunkPlugin_Enabled.png [ 42304 ] |
Attachment | New: Pipleline_stage_plugin.png [ 42305 ] |
Attachment | New: Splunk_plugin_version.png [ 42306 ] |
Attachment | New: Build_pipeline_plugin.png [ 42307 ] |
Component/s | Original: build-pipeline-plugin [ 15962 ] |
Component/s | Original: pipeline-stage-view-plugin [ 21139 ] |
Assignee | Original: Sam Van Oort [ svanoort ] | New: Ted Xiao [ fengxx ] |
This is an issue with the Splunk Devops plugin, not Stage View – Stage View just does a fetch-from-disk for the logfile associated with a FlowNode. If logs do not show up with the Splunk DevOps plugin enabled, something that plugin is doing is messing with the normal logging process.
fengxx Please can you take a look? Thanks.