7

I would like to set a secret text in my WebHook in github I don't know where I can set up it in Jenkins 2.138.3 with the GitHub plugin 1.23.9

system-dev
  • 321
  • 1
  • 4
  • 8

1 Answers1

8

Jenkins side:

  1. Set a new credential: Jenkins -> Manage Jenkins -> Credentials -> Add credential -> Secret Text

enter image description here 2. Configure Github plugin: Jekins -> Manage Jenkins -> Configure System -> Github -> Advance -> Pick the credential created at step 1.

enter image description here

Github side:

  1. Webhooks -> Manage Webhooks -> Secrets and use the credential created in Jenkins

enter image description here

I hope the instructions work for you

David Ortega
  • 115
  • 1
  • 6