Can Jenkins detect and build new tags from Git repository?

0 votes
Is it possible for Jenkins to detect and build new tags from Github repository? This should automatically be done as soon as new tags are created. Is this possible?
Jun 24 in DevOps Tools by Arvind
• 1,290 points
17 views

1 answer to this question.

0 votes
Yes, this can be done in 3 steps as follows:

1. Click on the advanced tab below the line where you specify your repository URL. Here enter the Refspec +refs/tags/*:refs/remotes/origin/tags/*

2. Now use build all tag "branches" with the Branch Specifier */tags/*

3. Now enable SCM polling so that your jenkins job is able to detect new tags that are created.

I think this should solve your problem.
answered Jun 24 by Neel
• 1,350 points

Related Questions In DevOps Tools

0 votes
3 answers
0 votes
2 answers
0 votes
1 answer

Deploy in to jboss EAP 6.4 from jenkins

You can use the mavan plugin <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.9.Final</version> <configuration> ...READ MORE

answered Jul 20, 2018 in DevOps Tools by Kalgi
• 37,320 points
349 views
+4 votes
2 answers

Jenkins not showing Maven Release Plugin

Make your project type Maven Project. This ...READ MORE

answered Oct 11, 2018 in DevOps Tools by Hannah
• 14,080 points
577 views
+4 votes
4 answers

perform Git checkout using Groovy script

To do git commit: def getGitCommit() { ...READ MORE

answered Dec 6, 2018 in DevOps Tools by Vaidya
5,071 views
+13 votes
2 answers
0 votes
1 answer