I have a Jenkinsfile like the one below to do git pull automatically:
pipeline { agent any } stages { stage("Code Checkout") {