Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikeygithub opened this issue Aug 31, 2023 · 1 comment

Comments

@mikeygithub
Copy link

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

@tomasbjerre
Copy link
Contributor

Thanks for reporting. Good that you found a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants