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, 2019 in DevOps Tools by Arvind
• 3,050 points
18,498 views

2 answers to this question.

+1 vote
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 25, 2019 by Neel
• 3,020 points
0 votes

If you want to configure a job just to build tags, do the following:

Configure Bitbucket Server: 

Make sure  Advanced Configuration > Branch Options > Build All is selected. This will skip the whitelist and blacklist checks so that all new commits and tags send the required Jenkins notification.

Set up a Jenkins Job for Tags:

In the job set refspec to +refs/tags/*:refs/remotes/origin/tags/*. Set the branch specifier to **/tags/**. This will configure the job so it only responds to new tags.

answered Aug 5, 2019 by Sirajul
• 59,230 points

Related Questions In DevOps Tools

+1 vote
1 answer

i have a pyhton code in my git/git repository how to build that code in jenkins

Follow these steps @Bhaskar: Step 1: Open the Jenkins ...READ MORE

answered Oct 14, 2019 in DevOps Tools by Kalgi
• 52,350 points
914 views
0 votes
1 answer

What are some strategies for managing large volumes of build artifacts in Jenkins? Can you share tips or scripts for archiving and cleaning up old artifacts to save space?

In Jenkins, large volumes of artifacts from builds are the heart and soul of optimizing storage usage ...READ MORE

answered Nov 14 in DevOps Tools by Gagana
• 6,530 points
63 views
0 votes
1 answer

How would you configure Jenkins to build and deploy an application to AWS, Azure, or GCP? Can you share sample code or a Jenkinsfile for deploying with Terraform or CloudFormation?

Set up Jenkins for application building and deployment onto AWS, Azure, or GCP by integrating it with ...READ MORE

answered Nov 14 in DevOps Tools by Gagana
• 6,530 points
65 views
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer

How do you manage dependencies in Jenkins for language-specific builds, like Node.js, Python, or Java? Can you provide pipeline code that ensures dependencies are installed before each build?

In Jenkins, managing dependencies for language-specific builds, for example, Node.js, Python, Java can easily be done by including installation steps into your pipeline before the ...READ MORE

answered Nov 25 in DevOps Tools by Gagana
55 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,058 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP