I've a declarative pipeline in Jenkinsfile where I'd line to add the shallow clone option, depth = 1, timeout = 30 in the git plugin. Currently my setup that is working is:
git(
credentialsId: 'MY_GIT_CREDENTIALS',
branch: "${params.BRANCH}",
url: "${env.BBSCM}"
)
Could somebody help me adding to the statement the three desired parameters ?