Currently, the www.wikipedia.org and sister project portals are updated by running a build script on a developer machine, then a patch containing those artifacts are submitted to Gerrit for +2. The patch is then deployed during SWAT at semi-regular intervals.
Running the build locally and pushing it to Gerrit requires manual intervention, and instead, could be automated by Jenkins in CI.
We should create a Jenkins job that runs the build script (which can be combined into a single NPM command, like npm run-script build-all-portals) and creates the deployment artifacts. Jenkins could then create a commit from the artifacts and push it back to Gerrit for manual review and +2.
In summary, we need to build a Jenkins job that:
- Runs the portal build command at a regular interval (lets say, once a week)
- Creates a Gerrit patch with those artifacts
- Pushes the deployment artifacts to a dev server so a developer can visually review them (any static http server will do)
- Pushes the patch to Gerrit