...
- wingman-trigger: This is the scheduled process.
- wingman: This is the main job which call calls the Orchestrator service.
- wingman-update: This is a management process. It fetches, compiles and updates the pentaho-wingman service (see below).
...
Parameter | Description |
---|---|
-o | A comma separated list of the names of the organizations to scan for a list of projects. Usually something like: "pentaho,webdetails". |
-t | The path to a credentials file on your local file system. This file must contain an API token from GitHub. |
-b | A comma separated list of the names of the branches to scan. All pull requests for these branches will be considered. |
-ao | A comma separated list of organization names to which a user must belong to in order for his pull request to be built. |
...
Code Block |
---|
python PullRequestRecon.py -o webdetails,pentaho -t ./credentials.cred5334afa5de50ea3e4357d73ce3544ac3e8f5987 -b master,6.1,6.0 -ao webdetails,pentaho |
...
This job updates the Wingman service. There are a few prerequisites before running this job.
- Disable the Jenkins jobs names wingman and wingman-trigger.
- Make sure that no wingman jobs are currently running. If they are, wait until they complete.
- You can now run the wingman-update job
The update job The update job performs a few tasks.
- Build wingman from the latest code
- Stop the wingman service.
- Wait for the service to stop.
- Pull the latest code from master
- Run the build
- Replace the current build with the new one
- Start the wingman service.
Below This is the code which we currently use to accomplish these tasks. (Line breaks added for readability)
...
done through the deploy.sh script present within the project.
pentaho-wingman
This system is composed of an OSGI application. The code lives here. It contains numerous modules which fall in one of those categories.
...