> On 12. Aug 2018, at 13:40, Dário Nascimento <
dfrnas...@gmail.com> wrote:
>
> I want to execute a plugin using Jenkinsfile pipeline and I want that plugin to have the context (branch & job) without user interference. This plugin generates a token identifying the job so we can authenticate with other services.
> If I allow users to set the branch as env var, then the token content is compromised and my plugin is insecure. This is critical to developing a secure self-service CI/CD. How can I do it?
>
might help you.