-
Notifications
You must be signed in to change notification settings - Fork 115
Continuous_Integration
We're using Jenkins provided by Eclipse for CI.
If you are a committer for the MicroProfile project, you will have access to create and configure jobs on the MicroProfile Jenkins instance. Just log in with your Eclipse id.
The simplest way to create a new job is to copy an existing one.
- From the dashboard, click New Item.
- Enter a name for the new build.
- At the bottom of the page, where it says "Copy from", start typing the name of the job you want to copy the build from, and select the job when it appears.
- Click OK.
- On the next screen, update the following fields:
- Description
- Repository URL
- Goals and options for the maven build, if necessary
- Hit save
The GitHub Pull Request Builder will automatically build all PRs on a repository, and set the status of the PRs to passed or failed based on whether the build passed or failed. To enable it, you should create a new job for building PRs. This can either be done by copying an existing job that builds PRs for another repository (easiest, it just requires updating the GitHub project URL, the git repository URL, description, and goals if necessary), or copying an existing job that doesn't build PRs but does build a project in the way you want.
To create a new pull request builder job based on another pull request builder job:
- Copy the PR job
- Update the description of the build
- Update the GitHub project URL in the general configuration
- Update the git repository URL in the git repository configuration
- Update the maven goals if necessary
- Save the build
To create a new pull request builder job based on an existing non pull request builder job for the same repository:
- Copy the job you want to base the PR job on.
- Update general configuration
- Update the description of the build.
- Enter the GitHub project URL in the "GitHub project" field, eg
https://github.com/eclipse/microprofile-reactive
- Update Git Repository configuration:
- Under advanced, enter
+refs/pull/*:refs/remotes/origin/pr/*
into the refspec field. - Enter
${sha1}
into the branch specifier
- Under advanced, enter
- Update build triggers configuration
- Uncheck any of the exist build triggers
- Check GitHub Pull Request Builder
- Leave use GitHub hooks for build triggering unchecked - it requires admin access on the repo which the build bot account doesn't have. The pull request builder will poll GitHub for updates instead.
- In the advanced section of the GitHub Pull Request Builder
configuration:
- Optional: configure a trigger phrase. Useful for
retriggering PR builds that failed for reasons unrelated to
the PR. I set it to
.*[Bb]uild [Pp]lease.*
- Enter
eclipse
into the whitelisted organizations field. - Check "Allow members of whitelisted organizations as admins"
- Optional: configure a trigger phrase. Useful for
retriggering PR builds that failed for reasons unrelated to
the PR. I set it to
- Important: Disable email notifactions - notifications will be given directly on the GitHub pull request
- Important: Delete the "Deploy artifacts to Maven repository" post build action
- Save the build
Once done, within 5 minutes, the job should start building all existing open PRs.
Using the above configuration, by default, it will only build pull requests opened by members of the Eclipse GitHub organization. To build pull requests from non members, you can use the following commands, which are given by adding comments to the pull request:
- "ok to test" to accept this pull request for testing
- "test this please" for a one time test run
- "add to whitelist" to add the author to the whitelist
The pull request builder will only respond to commands from admins, which is configured to be anyone in the Eclipse GitHub organization.
download.eclipse.org is available under the path /home/data/httpd/download.eclipse.org (file hierarchy below that is the same as on the web). You should be able to "cp" your files to the proper subfolder. Just create a "shell script" build step. (info provided in the CBI-dev mailing list)
Category:MicroProfile