Following is the snippet
stage(\'Git checkout\') { steps { git branch: \'${params.branchName}\', url: \'my_git_repository_url.git\' }