title: How to use GCloud in pipeline Windows
body: <p>I have the following pipeline that is working correctly in linux system but I am looking the same for Windows System.</p>
  
  <p>My Google Cloud is located in : C:\Software\gcloud\google-cloud-sdk\bin</p>
  
  <p>And I have a global variable created in PATCH </p>
  
  <p><a href="https://i.stack.imgur.com/9O9tS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9O9tS.png" alt="enter image description here"></a></p>
  
  <p>How could I use gcloud in Jenkins under Windows System?</p>
  
  <pre><code>pipeline {
     agent any
  
  stages {
      stage('Run gcloud') {
  
          steps {
              withEnv(['GCLOUD_PATH=/var/jenkins_home/google-cloud-sdk/bin']) {
                  sh '$GCLOUD_PATH/gcloud --version'
              }
  
  
           }
        }
     }
  }
  </code></pre>
  
  <p>I have this code in Windows</p>
  
  <pre><code>pipeline {
     agent any
  
  stages {
      stage('Run gcloud') {
  
          steps {
              withEnv(['GCLOUD_PATH=C:\\Software\\gcloud\\google-cloud-sdk\\bin']) {
                  sh '$GCLOUD_PATH\\ gcloud --version'
              }
  
  
           }
        }
     }
  }
  </code></pre>
  
  <p>And the result when I launch jenkins is this : </p>
  
  <p><a href="https://i.stack.imgur.com/P2sJ4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P2sJ4.png" alt="enter image description here"></a></p>