jenkinsci / jenkinsci/generic-webhook-trigger-plugin

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

Open
#279 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
427
Forks
169
Avg merge
23m
Merged PRs (30d)
1

Description

# 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](https://github.com/jenkinsci/generic-webhook-trigger-plugin/assets/36464578/279f2e13-fa5b-47a2-a93c-9c32f284dec9)

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](https://github.com/jenkinsci/generic-webhook-trigger-plugin/assets/36464578/bde91124-a57f-4901-91c2-9369fe66e48e)

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

![image](https://github.com/jenkinsci/generic-webhook-trigger-plugin/assets/36464578/29b12878-6a50-4809-9487-18dc797f6cff)

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

![image](https://github.com/jenkinsci/generic-webhook-trigger-plugin/assets/36464578/6a62e2f8-df14-4d74-acfb-43d9f6459dd6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.