Opened 7 months ago

Last modified 5 months ago

#1013 qa task

Setup jenkins-job-builder to automate generation of Jenkins jobs

Reported by: skylar Owned by: skylar
Priority: major Milestone: 3.4.0-build_ng
Component: Both Version:
Keywords: Cc:
Blocked By: Blocking:
Estimated Hours: 0 Total Hours: 0

Change History (31)

comment:1 Changed 7 months ago by skylar

  • Description modified (diff)
  • Status changed from new to assigned

comment:2 Changed 7 months ago by skylar

In 6072//cluster/svnroot:

initial commit re #1013

comment:3 Changed 7 months ago by skylar

In 6073//cluster/svnroot:

test projects and templates re #1013

comment:4 Changed 7 months ago by skylar

In 6074//cluster/svnroot:

add quotes re #1013

comment:5 Changed 7 months ago by skylar

In 6075//cluster/svnroot:

data struct oops re #1013

comment:6 Changed 7 months ago by skylar

for me for tomorrow: figure out why this is failing:

jenkins-jobs test ~/svnroot/bccd-ng/branches/skylar/bccd-3.4.0-build_ng/jenkins/job_builder.yml

could we need a Jenkins account setup, or point a config file at the Jenkins root? the error is most ambiguous

comment:7 Changed 7 months ago by skylar

In 6076//cluster/svnroot:

escapes braces re #1013

comment:8 Changed 7 months ago by skylar

In 6077//cluster/svnroot:

cannot put builders in projects, must be in job templates re #1013

comment:9 Changed 7 months ago by skylar

In 6078//cluster/svnroot:

enumerate build actions as separate projects re #1013

comment:10 Changed 7 months ago by skylar

todo: enumerate projects/build steps

comment:11 Changed 7 months ago by skylar

In 6079//cluster/svnroot:

testing defaults and project variables re #1013

comment:12 Changed 7 months ago by skylar

In 6080//cluster/svnroot:

fix name re #1013

comment:13 Changed 7 months ago by skylar

In 6081//cluster/svnroot:

add arch instance re #1013

comment:14 Changed 7 months ago by skylar

In 6082//cluster/svnroot:

scm cannot be set in defaults re #1013

comment:15 Changed 7 months ago by skylar

In 6083//cluster/svnroot:

adding ISO job re #1013

comment:16 Changed 6 months ago by skylar

In 6084//cluster/svnroot:

install-dir should be property of project re #1013

comment:17 Changed 6 months ago by skylar

In 6085//cluster/svnroot:

can parameterize on name re #1013

comment:18 Changed 6 months ago by skylar

In 6086//cluster/svnroot:

adding fpm job re #1013

comment:19 Changed 6 months ago by skylar

In 6087//cluster/svnroot:

adding publisher and copy steps re #1013

comment:20 Changed 6 months ago by skylar

for me for next time - figure out how to get python to ignore the SSL cert hostname mismatch for bigfe, or fix the cert

comment:21 Changed 5 months ago by skylar

In 6088//cluster/svnroot:

some guesswork and source code looking revealed what the YAML structure really should be for pipeline jobs re #1013

comment:22 Changed 5 months ago by skylar

this works, but sets up manual jobs:

 - job-template:
     name: 'BCCD-{name}-build_ng-{version}-{arch}-fpm'
     defaults: 'bccd'
     scm:
       - 'BCCD-v3.4.0_build-ng-branches-{name}'
     builders:
       - shell: |
           make target/bccd.noarch.deb
     publishers:
       - pipeline:
           project: 'BCCD-{name}-build_ng-{version}-{arch}-debootstrap-bccd'
       - archive:
           artifacts: 'target/*'
       - archive:
           artifacts: 'build/etc/bccd-revision'

comment:23 Changed 5 months ago by skylar

In 6089//cluster/svnroot:

trigger syntax figured out re #1013

comment:24 Changed 5 months ago by skylar

trigger syntax:

 - job-template:
     name: 'BCCD-{name}-build_ng-{version}-{arch}-debootstrap-bccd'
     defaults: 'bccd'
     scm:
       - 'BCCD-v3.4.0_build-ng-branches-{name}'
     builders:
       - copyartifact:
           project: 'BCCD-{name}-build_ng-{version}-{arch}-fpm'
           filter: 'target/bccd.noarch.deb'
       - copyartifact:
           project: 'BCCD-{name}-build_ng-{version}-{arch}-debootstrap'
           filter: 'target/debootstrap.tar.bz2'
       - shell: |
           make target/debootstrap-bccd.tar.bz2
     publishers:
       - archive:
           artifacts: 'target/debootstrap-bccd.tar.bz2'
       - trigger:
           project: 'BCCD-{name}-build_ng-{version}-{arch}-iso'

comment:25 Changed 5 months ago by skylar

In 6090//cluster/svnroot:

need to include architecture in debootstrap project name re #1013

comment:26 Changed 5 months ago by skylar

In 6091//cluster/svnroot:

copy target/debootstrap-bccd.tar.bz2 from debootstrap-bccd, not deb re #1013

comment:27 Changed 5 months ago by skylar

In 6092//cluster/svnroot:

merge addresses #915, #1013

comment:28 Changed 5 months ago by skylar

In 6093//cluster/svnroot:

test making prod builds re #1013

comment:29 Changed 5 months ago by skylar

In 6094//cluster/svnroot:

simplify SCM naming re #1013

comment:30 Changed 5 months ago by skylar

In 6095//cluster/svnroot:

merge addresses #1013

comment:31 Changed 5 months ago by skylar

  • Status changed from assigned to qa
Note: See TracTickets for help on using tickets.