git-plugin: Exclude build when changes occur in gh-pages branch on github

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

git-plugin: Exclude build when changes occur in gh-pages branch on github

Mirko Friedenhagen-3
Hello,

I publish my Maven site using the gh-pages branch on github. However,
whenever I push the site Jenkins will start a build of the gh-pages
branch which will fail, as this of course does not contain a valid
Maven project. In the configuration of the git-plugin I do not see
immediately how to exclude a specific branch.

Regards Mirko
Reply | Threaded
Open this post in threaded view
|

Re: git-plugin: Exclude build when changes occur in gh-pages branch on github

domi@fortysix.ch
Just define the branch in the Git section of your Job's configuration:
Git > Branches to build > Branch Specifier (blank for default): > e.g. "origin/master"
/Domi

On 16.12.2012, at 21:40, Mirko Friedenhagen <[hidden email]> wrote:

> Hello,
>
> I publish my Maven site using the gh-pages branch on github. However,
> whenever I push the site Jenkins will start a build of the gh-pages
> branch which will fail, as this of course does not contain a valid
> Maven project. In the configuration of the git-plugin I do not see
> immediately how to exclude a specific branch.
>
> Regards Mirko