title: Jenkins : how to declare environments variables securely in JenkinsFile with GitHub webhook?
body: <p>I'm beginner with Jenkins and I must build a Jenkins Pipeline for a project. I decided to use GitHub as SCM. GitHub launch Jenkins pipeline thanks to webhook on each push.</p>
  <p>The Jenkins pipeline is a multibranche pipeline. So I can have one Jenkinsfile on each GitHub branch.</p>
  <p>I also use Terraform to build EC2 Instance on AWS thanks to my Jenkins pipeline. So I must manage my IAM credentials and some other important variables that I can be able to use during the workflow.</p>
  <p>How can I secure my variables during the workflow ? My jenkinsfile is versioned on Github. If I use the &quot;env&quot; step in JenkinsFile, all my variables will be visible. GitHub doesn't allow to manage environment variable if I didn't use GitHub Action. I don't now if a Jenkins plugin can help me or a function that I not know on Jenkins ? I know the global environment variables on Jenkins but all my variables are focused on one project and not on all.</p>
  <p>Thank you for your help.
  Gati</p>