Hi, i think you should look at Credentials plugins and store token https://github.com/todorus/telegrambot/blob/develop/src/main/java/com/todorus/telegrambot/TelegramBotPublisher.java#L42 in secret way using Credentials.
On Tuesday, September 15, 2015 at 2:01:44 AM UTC+3, todorus wrote: > > github repo: https://github.com/todorus/telegrambot > jenkins repository name: telegrambot-plugin > github user: todorus > jenkins-ci.org user: todorus > description: Allows you to send build results to a Telegram bot > > I do not know how far along a plugin needs to be for it to be hosted on > the Jenkins plugin Update Centre. Currently it is in the proof of concept > stage, but already useable. It's my first attempt at a Jenkins plugin and I > hope to learn about Jenkins plugin development by extending it over time > and at the same time contribute to the Jenkins ecosystem. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/67c791bd-0473-4f65-bf32-81547ecb7a5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
