title: Executing gcloud command in Jenkins pipeline
body: <p>I'm trying to run the gcloud command in a Jenkins declarative pipeline just like in the following example:</p>
  
  <pre><code>pipeline {
      agent any
  
     stages {
        stage('Run gcloud version') {
  
           steps {
              sh 'gcloud --version'           
           }
        }
     }
  }
  </code></pre>
  
  <p>I downloaded the "GCloud SDK Plugin" and configured it like this (in "Global Tool Configuration" for Jenkins):</p>
  
  <p><a href="https://i.stack.imgur.com/qK2HA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qK2HA.png" alt="enter image description here"></a></p>
  
  <p>but when I try to build the pipeline using the above Jenkinsfile, I'm getting a 'gcloud: not found' error in the pipeline. </p>