0

I trying to get code from git in Jenkins pipeline by tag without success. with the following code:

  • git branch: 'tag name', credentialsId: 'my credentials', url: 'my url'

I get following error:

  • ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE

I tried the following as well:

  • git branch: 'tags/tag name', credentialsId: 'my credentials', url: 'my url'

same issue

Roman Zinger
  • 102
  • 2
  • 9

1 Answers1

0

Try git branch: '*/tags/tag name'