Logstash Plugin failure on sh step

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: logstash-plugin
    • None
    • Environment:

      The plugin doesn't behave as expected for pipeline with shared library.

      pipeline {
        agent {
          kubernetes

      {       cloud 'rke2-stage'       namespace 'cloudbees-core'       yaml """ apiVersion: v1 kind: Pod spec:   containers:     - name: busybox       image: busybox:latest       command:         - cat       tty: true """     }

        }

        stages {
          stage('Run in Pod') {
            steps {
              container('busybox') {
                logstash

      {               sh '''                 echo 'HI'                            '''           }

              }
            }
          }
        }
      }

      This gives warning as 

      [logstash-plugin]: Unable to instantiate LogstashIndexerDao with current configuration.
      + echo HI
      HI
      and no logs in elastic search but it works fine with freestyle job

            Assignee:
            Jakub Bochenski
            Reporter:
            Shital
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: