Relative Content

Tag Archive for jenkins-pipelinecicdgithub-webhook

How to add version data to github-webhook payload

Added github-webhook payload as a parameter to the jenkins pipeline script.
The purpose is to take the version data from the github-webhook payload and use it as a tag when building docker images.
But I don’t know how to add version data from github-webhook payload.
I thought the best way was to use github’s tag function, but I couldn’t get it for the tag because that pipeline only works at pull request.
I thought I could get it through a branch name or a commit message, but I don’t know if this is okay.
What are some good ways to add version data to the github-webhook payload?