2015-05-20

← Older revision

Revision as of 15:23, 20 May 2015

Line 228:

Line 228:

In order to setup a verification build job [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Community file a bug in Bugzilla] on "Eclipse Foundation > Community" using component "Hudson sandbox" and ask the webmaster to create a new build job on sandbox Hudson. Then

In order to setup a verification build job [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Community file a bug in Bugzilla] on "Eclipse Foundation > Community" using component "Hudson sandbox" and ask the webmaster to create a new build job on sandbox Hudson. Then



configure the new job following the description given on the [https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger plugin's home page].

+

configure the new job following the description given on the [https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger plugin's home page]
. Note: You may need to ask in the bug to configure the Gerrit plugin itself
.

The configuration sections for the Git plugin and the Gerrit trigger plugin of the verification job used by the JGit project may serve as an example.

The configuration sections for the Git plugin and the Gerrit trigger plugin of the verification job used by the JGit project may serve as an example.



====Configuration of Git plugin:====



# Under Source Code Management select Git.
Click
on Advanced and change the  '''Choosing Strategy''' to '''Gerrit Trigger'''.

+

====General configuration settings====



# Follow the settings depicted below:

+

+

# Check "This build is parametrized". Click the "Add" button and select "String Parameter". Set the parameter 'Name' to "GERRIT_REFSPEC" and 'Default Value' to 'refs/heads/master'.

+

+

====Configuration of Source Code Management====

+

+

# Under
"
Source Code Management
"
select Git.
Under "Branches to build", click
on
"
Advanced
"
and change the  '''Choosing Strategy''' to '''Gerrit Trigger'''.

+

# Follow the settings depicted below:

[[Image:Jgit.gerrit-git-config.png]]

[[Image:Jgit.gerrit-git-config.png]]



====Configuration of Gerrit trigger plugin
:
====

+

====Configuration of Gerrit trigger plugin====

+

+

# Follow the settings depicted below: (Important: Under "Branches" in the "Gerrit Trigger" section, make sure that the combo-box is set to "Path" and the value to "**".)

[[Image:Jgit.gerrit-gerrit-config.png]]

[[Image:Jgit.gerrit-gerrit-config.png]]

+

+

====Configuration of the build action====

+

+

Under "Build" click the "Add a build step" button, and select the appropriate action. The actual action depends on what you want Hudson to do. A typical example, for projects build with Maven is to select "Invoke Maven 3" and set "Maven 3" to "apache-maven-latest" and "Goals" to "clean verify".

+

[[Category:Gerrit]]

[[Category:Gerrit]]

Show more