Git Pull without URL

Hello,

I’ve figured out that there is a git pull command in the following code however before that no GIT URL is been mentioned.

 //PROD
        stage('Build Prod') {
            agent {
              label {
                label 'prod'
                customWorkspace "/opt/go-app"
              }
            }
            steps {
                sh 'git pull'
            }
        }```

Then someone has manually cloned the repo into the workspace previously.

1 Like