Apt/Jenkins
From PostgreSQL wiki
< Apt(Difference between revisions)
| Line 24: | Line 24: | ||
* Go to the new source job (called like ''git-source-templatepackage''), select configure, and rename the job to ''package'''''-source''' | * Go to the new source job (called like ''git-source-templatepackage''), select configure, and rename the job to ''package'''''-source''' | ||
* Go to the new binaries job (called like ''postgresql-binaries-templatepackage''), select configure, and rename the job to ''package'''''-binaries''' | * Go to the new binaries job (called like ''postgresql-binaries-templatepackage''), select configure, and rename the job to ''package'''''-binaries''' | ||
| + | * Configure the ''package'''''-binaries''' jobs to trigger the '''dput''' project (FIXME: this should be part of the template) | ||
* Hit "build now" on the new source job | * Hit "build now" on the new source job | ||
* Watch the job's console output | * Watch the job's console output | ||
Revision as of 11:08, 12 October 2012
Packages are built in a [Jenkins] installation at https://pgdgbuild.dus.dg-i.net/jenkins/ (login required).
We are using Mika Prokop's [Jenkins-Debian-Glue] scripts.
For every package, there are two jobs:
- foobar-source builds .dsc source packages from an VCS repository
- foobar-binaries builds .deb binary packages from the source packages
These jobs then trigger common jobs:
- postgresql-testsuite runs the postgresql-common testsuite on the server packages built
- dput uploads the source and binary packages to the repository host
Creating New Jobs
New jobs should use the templating mechanism provided by JoelJ's [Templating plugin].
- Go to "Scaffolding"
- Select the scaffold for the VCS the package is using, e.g. "git-package"
- "Stand up" the scaffold, and fill in the variables
- giturl: Git URL for the package
- package: package name
- Go to the new source job (called like git-source-templatepackage), select configure, and rename the job to package-source
- Go to the new binaries job (called like postgresql-binaries-templatepackage), select configure, and rename the job to package-binaries
- Configure the package-binaries jobs to trigger the dput project (FIXME: this should be part of the template)
- Hit "build now" on the new source job
- Watch the job's console output