0
votes

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

1
Have you actually pushed the tag?zett42
what you meant?Roman Zinger
Tags are not pushed by default, so it might be the case that the tag exists only in your local repository, but not on remote. stackoverflow.com/q/5195859/7571258zett42

1 Answers

0
votes

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