Apt/Jenkins

From PostgreSQL wiki

< Apt(Difference between revisions)
Jump to: navigation, search
(Created page with "Packages are built in a http://jenkins-ci.org/ Jenkins installation at https://pgdgbuild.dus.dg-i.net/jenkins/. We are using Mika Prokop's [[http://jenkins-debian-glue.org/ …")
 
Line 1: Line 1:
Packages are built in a [[http://jenkins-ci.org/ Jenkins]] installation at https://pgdgbuild.dus.dg-i.net/jenkins/.
+
Packages are built in a [[http://jenkins-ci.org/ Jenkins]] installation at https://pgdgbuild.dus.dg-i.net/jenkins/ (login required).
  
 
We are using Mika Prokop's [[http://jenkins-debian-glue.org/ Jenkins-Debian-Glue]] scripts.
 
We are using Mika Prokop's [[http://jenkins-debian-glue.org/ Jenkins-Debian-Glue]] scripts.
Line 6: Line 6:
  
 
* foobar-source builds .dsc source packages from an VCS repository
 
* foobar-source builds .dsc source packages from an VCS repository
* foobar-binaries builds .deb binary packages from the source packages.
+
* 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 [[https://github.com/JoelJ/Templating 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'''
 +
* Hit "build now" on the new source job
 +
* Watch the job's console output

Revision as of 11:05, 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
  • Hit "build now" on the new source job
  • Watch the job's console output
Personal tools