Skip to content

Running sh without filling in a value for Post content parameters will blocking #279

@maiqigh

Description

@maiqigh

Plugin version used

Generic Webhook Trigger Plugin Version1.86.4

Jenkins version used

Jenkins 2.346.3

configuration

If the name is empty, it defaults to '_' Rename variable at the beginning

image

pipeline define

pipeline {
  agent none
  stages {
    stage('deploy') {
      agent {
        docker {
          image 'xxxxx/xxxx:3.1.0'
          args '-v /devops/kubectl:/root/.kube -u root'
        }
      }
      steps {
        sh '''
        echo deploy
        echo "Hello, World!
        feishu post -t ${COMMON_FEISHU_TOKEN} -s ${COMMON_FEISHU_SECRET} start\" -r \"${RUN_DISPLAY_URL}\"
        '''
      }
    }
  }
}

When I use webhook for triggering, once I execute sh, it will enter an infinite blocking state

image

But when I click on build now on Jenkins, it can run normally

image

Finally, I found that as long as I write any value, it can run normally

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions