title: How can I load credentials.json file into jenkins pipeline job?
body: <p>I have a script which runs against google Directory API.</p>
  <p>The purpose of this script is to download all users from Google's Directory of our company.</p>
  <p>But when I run that script it give an error</p>
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'credentials.json'
  </code></pre>
  <p>Although that file is in the folder.</p>
  <p>Do I need to put that file into the Credential manager or ....?</p>
  <p>I also have a groovy file which just install the pip and activate venv and nothing else.</p>
  <p>Here is groovy code</p>
  <pre><code>stage('Check activity') {
        steps {
          sh 'pwd'
          sh '''#!/bin/bash
            set -e
            if ! which pipenv &gt;/dev/null; then
                echo \'no pipenv, installing...\'
                pip3 install --user pipenv
                if ! which pipenv &gt;/dev/null; then
                # default location for: /home/jenkins/.local/bin/pipenv
                my_pip_env=&quot;/home/${USER}/.local/bin/pipenv&quot;
                fi
            else
                echo \'pipenv already installed, nothing to do.\'
                my_pip_env=$(which pipenv)
            fi
            # pipenv version, check &amp; install
            ${my_pip_env} --version
            ${my_pip_env} install
            # run script
            PYTHONPATH=$(pwd):${PYTHONPATH} \\
            PIPENV_PIPFILE=$(realpath ./Pipfile) \\
            ${my_pip_env} run -v python3  ./it/google-users/google_user.py -v &quot;${VERSION}&quot; -dr &quot;${DRY_RUN}&quot; -et &quot;${EXCLUDED_TYPES}&quot;
            # Remove virtualenv project
            ${my_pip_env} --rm
          '''
        }
      }
  </code></pre>
  <p>do I need to define environment variables in groovy script?</p>