title: How to create env variables in powershell in Jenkinsfile?
body: <p>I need to create environment variable in Jenkinsfile which will store the name of the file with .sln extension in current workspace. I have no ide how to do it. I've tried to create it with powershell</p>
  
  <pre class="lang-bsh prettyprint-override"><code>$project_to_publish = (dir *.sln).BaseName
  </code></pre>
  
  <p>but I don't know how to make it environmental. Any ideas?</p>