jenkinsci / gogs-webhook-plugin

Jenkins Gogs Webhook
https://plugins.jenkins.io/gogs-webhook/
MIT License
79 stars 42 forks source link

Cant get the 1.0.12 new env variables (GOGS_REF and GOGS_BEFORE) in pipeline. #38

Closed everccc closed 6 years ago

everccc commented 6 years ago

Cant get the Version 1.0.12 new env variables (GOGS_REF and GOGS_BEFORE) in pipeline.

sh("printenv") show without GOGS_REF and GOGS_BEFORE. Am i missing something?

Description

...

sanderv32 commented 6 years ago

Under Build Triggers did you enable Gogs-Webhook?

everccc commented 6 years ago

You mean "Build when a change is pushed to Gogs" this ? Sorry for not notice it at first .
and i create a small service to handle gogs webhook and call jenkins job with custom policy.So now i am not using this plugin for now.

Thanks for replying. As gogs do not add filter of webhook trigger by seperate branches .I think it should be great that gogs-webhook-plugin can handle it .