title: Tagging a git repo using jenkins pipeline script
body: <p>I am trying to tag a git repo using Jenkins pipeline script. I am very new to jenkins pipeline script.</p>
  
  <p>Is there a command like the one below, to tag the branch, which is used to checkout the branch</p>
  
  <pre><code>git branch: 'master',
    credentialsId: '12345-1234-4696-af25-123455',
    url: 'ssh://git@bitbucket.org:company/repo.git'
  </code></pre>