Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins trigger build if new tag is released

Tags:

git

jenkins

tags

I want to configure jenkins so that it starts building if a new tag is released in any branch of an git repository. How do I configure this behaviour?

git jenkins config

Triggering: build trigger

Thanks for any help

like image 818
Kingalione Avatar asked Apr 20 '15 08:04

Kingalione


People also ask

Can Jenkins build be triggered automatically?

As soon as we will hit the URL in the browser, Jenkins will trigger the build automatically like in the below image.

How do you trigger a new build in Jenkins?

Create a remote Jenkins build trigger in three stepsCreate a Jenkins build job and enable the Trigger builds remotely checkbox. Provide an authentication token; This can be any text string of your choice. Invoke the Jenkins build URL to remotely trigger the build job.

How do you trigger a job in Jenkins when a pull request is created?

For Jenkins to receive PR events through the pull request plugin, you need to add the Jenkins pull request builder payload URL in the Github repository settings. If you need just the PR triggers, you can select the “Let me select individual events” option and select just the “Pull requests” option.


1 Answers

Set refspec to: +refs/tags/*:refs/remotes/origin/tags/*

branch specifier: **

Under build triggers check Build when a change is pushed to GitHub

like image 155
albertski Avatar answered Sep 18 '22 09:09

albertski