git commit hook executes job for a specific branch?

37 views
Skip to first unread message

Lars Fischer

unread,
Jan 20, 2014, 4:10:32 AM1/20/14
to jenkins...@googlegroups.com
Hello,

I have a git repository (hosted on bitbucket) with multiple branches
and would like to configure a Jenkins with multiple jobs for this
repository to only execute a specific job for a specific branch
triggered by a POST commit hook.

I played with the configuration, but until now, the hook triggers
execution of all jobs of the repository and every job builds the last
commit on it's branch.
This is not what I need.

So, is there a way to only execute one job for a branch that received a commit?

Best regards,
Lars

nicolas de loof

unread,
Jan 20, 2014, 4:13:06 AM1/20/14
to jenkins...@googlegroups.com
bitbucket jenkins hook only trigger a build, without any consideration for the branch being build. 
github hook pass git-plugin data on the incoming commit, so the git-plugin can filter them and trigger jobs according to configuration.

so, this is a bitbucket issue.


2014/1/20 Lars Fischer <resc...@gmail.com>

--
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-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lars Fischer

unread,
Jan 21, 2014, 2:51:00 AM1/21/14
to jenkins...@googlegroups.com
Hello Nicolas,

thank you for this hint. I will contact bitbucket.

Regards,
Lars

2014/1/20 nicolas de loof <nicolas...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages