How to work with Jenkins Git Publisher

I'm new to jenkins thanks to constant google search found how jenkins git publisher would allow to tag or fork a git repository in jenkins, can anyone please tell me a method to work with it. As I would like to tag my android project via jenkins git publisher.

thank

+3


source to share


1 answer


I am using Git Publisher for Push Tags. I only do this when the build completes as shown in the image below. I am using tag to push like ${BUILD_TAG}

, which is an environment variable, (String of jenkins-${JOB_NAME}-${BUILD_NUMBER}. Convenient to put into a resource file, a jar file, etc for easier identification)

I checked both Create new tag and Update new tag because if the tag is missing it will create a new tag or otherwise it will update the existing tag.



enter image description here

0


source







All Articles