Is there a way to automate Jenkins for Hg / Git Flow

We just switched to using Hg Flow, but one of the things we still don't quite understand is how best to use Jenkins. Ideally, we will have work in which tests are built and developed that build and test the default tasks and other tasks that are automatically created when a branch of functions or releases is created, and ideally also deletes the task after the completion of the function or release.

Does anyone know if this can be done, and if so, how exactly can this be done?

It would be nice if Jenkins could read from Hg who this branch was created and mark them as a contact person if / when the work is building, but it's really just nice to have.

Thanks in advance

+4
source share
2 answers

There is a job generator plugin that can be used here. You have to create a task that tracks the entire Hg repo for changes, and when it sees one, you run a task that parses the commit and creates a new task with a new branch instead of template fields.

If you see the history of the creation of the branch, you can only use this information in your task of creating a task to fill in the contact information as well.

+1
source

I have not tried it myself, but found this plugin (for GitFlow):

Jenkins Build Per Git Branch Flow

script Jenkins Git ( Git ).

. .

0

All Articles