Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39876

gogs-webhook-plugin always forgot secret after restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gogs-webhook-plugin
    • None
    • Docker 1.10.3@CentOS7.0 x86_64
      Jenkins & JDK version: 2.19.3-alpine
      installed plugin: gogs 1.0.6

      you can reproduce my environment by the following code:
      ```
      docker run --name=jenkins --restart=always -p 127.0.0.1:8080:8080 -p 50000:50000 -v jenkins-data:/var/jenkins_home jenkins:alpine
      ```

      When I was using the gogs-plugin, and set-up the same secret in both gogs and Jenkins' gogs-plugin, the webhook actually work really well.
      Here comes the problem, after I restart the whole server, the secret showed in the job is still the one I inputed before, however, the webhook actually isn't working!
      I have checked post json content from gogs, they are the same as before.
      It's the fault on the jenkins side--you actually need to save your secret again in the job configuration page and everything would work as you expected.

      Anyway, thank you for your great job!


      update:
      Or I guess, the secret isn't loaded successfully from your back-end database as expected.

            Unassigned Unassigned
            cnnblike Ke Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: