Hi all,

I'm new to Jenkins and finding it very useful. I'm also getting used to the 
Git flow pattern and I wanted to integrate it with my Jenkins builds so I 
started to develop a Maven extension to do that.

Basically, my extension will do the following:

1.  Find the checked out Git ref (from the repository, or from a Maven 
command line property for overrides or when HEAD is detached) and matche it 
with a regular expression pattern provided in a specific profile property. 
If there is a match, the profile is active. (The extension does some 
checking to try to find the correct Git repository (not working trees) for 
each project/pom.xml file in case there are multiple Git repositories 
involved in the build.)
2.  Get the HEAD commit message and do a similar regular expression match. 
If a match is found, the profile is active but only for this commit.
3.  Check the commit messages starting from HEAD, up to some depth, for a 
regular expression match for an on/off  indicator.  This allows one to turn 
on a profile in a commit message and the profile will remain active until 
it is turned off in a later message.  

This will be an extension that is placed in the "ext" directory in the 
Maven installation. I'm just getting started but I should have something 
functional in few days or weeks and I'll share it on Github when it is 
ready. I would appreciate any feedback or other use cases for how I can 
make this extension more useful in the context of Jenkins builds.

Thanks,
Shahim 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to