-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: gitea-plugin
-
Environment:Jenkins 2.319.1
Gitea-Plugin 1.4.1
Expose the received POST data from the calling gitea server like the Generic Webhook Trigger Plugin does.
triggers {
GenericTrigger(
genericVariables: [
[expressionType: 'JSONPath', key: 'body', value: '$'],
[expressionType: 'JSONPath', key: 'reference', value: '$.ref'],
[expressionType: 'JSONPath', key: 'referenceType', value: '$.ref_type']
],
regexpFilterText: '',
regexpFilterExpression: ''
)
}
stages {
stage('Testing') {
steps {
sh 'echo $body'
sh 'echo $ref'
sh 'echo $ref_type'
}
}
}
That would be great.
- duplicates
-
JENKINS-68682 Inject gitea webhook payload into the build
-
- Closed
-