Commit 45a1ea47 authored by Holger Levsen's avatar Holger Levsen

more initial versions of quite some files (and updated TODO)

parent 19a1f850
This diff is collapsed.
TODO
----
About jenkins.debian.net
========================
:Author: Holger Levsen
:Authorinitials: holger
:EMail: holger@layer-acht.org
:Status: in progress
:lang: en
:Doctype: article
:Licence: GPLv2
== About jenkins.debian.net
......@@ -7,61 +15,57 @@ TODO
* Join #debian-qa on irc.debian.org to report bugs or give other feedback!
* git clone git://git.debian.org/git/users/holger/jenkins.debian.net.git
== general todo
- add copyright notes
- firewall host
- switch to /srv/jenkins to be fetch from git
- mv "welcome to jenkins.d.n"-intro text to "about jenkins.d.n" in navigation (and use the html rendered version of this very file (in asciidoc syntax))
- use mirror.1und1.d
- mail notifications (to where?)
- proper backup (=daily)
- moar tests (see below)
- use https://github.com/openstack-ci/jenkins-job-builder to create _all_ job configurations (if possible, else mix with job-dsl-plugin or https://github.com/JoelJ/Templating.git
- proper git repo, outside ~holger
== General todo
* firewall host
* use mirror.1und1.d
* mail notifications (to where?)
* proper backup (=daily), bottom of this document
* more tests (see below)
* use https://github.com/openstack*ci/jenkins*job*builder to create _all_ job configurations (if possible, else mix with job*dsl*plugin or https://github.com/JoelJ/Templating.git
=== minor stuff
=== Minor stuff
- squid, cache files bigger than 20MB? (maximum_object_size in squid.conf)
- only trigger^wreally run jobs if available+used packages have changed (save packages in db and compare)
- install desktop-base, plymouth?
* mv TODO about.txt
* use nice stylesheet for about.html
* proper git repo url, outside users/holger
* squid, cache files bigger than 20MB? (maximum_object_size in squid.conf)
* only trigger (=really run) jobs if available+used packages have changed (save packages in db and compare)
== more tests:
== More tests to be run
=== test images:
=== Test cd-images:
----
<h01ger> and i plan to test (at first) weekly images of amd64 std,kde,lxde+xfce weekly and the first sid daily daily. anything obvious+useful i miss?
<h01ger> .oO( "other archs" )
----
** http://cdimage.debian.org/cdimage/weekly-builds/amd64/jigdo-cd/
** http://cdimage.debian.org/cdimage/daily-builds/sid_d-i/20121020-1/amd64/
- use jigdo:
http://cdimage.debian.org/cdimage/weekly-builds/amd64/jigdo-cd/
http://cdimage.debian.org/cdimage/daily-builds/sid_d-i/20121020-1/amd64/
- start client VMs using the profitbricks API: https://www.profitbricks.com/us/media/docs/PB_PublicAPI_EN.pdf (and dhcp)
* use jigdo to download those images
* start client VMs using the profitbricks API: https://www.profitbricks.com/us/media/docs/PB_PublicAPI_EN.pdf (and dhcp)
=== test tasks:
=== Test tasks:
----
<h01ger> how do i install a task outside d-i?
<h01ger> what interesting tasks are there?
<jcristau> tasksel install <task>
<daemonkeeper> h01ger: http://packages.debian.org/source/sid/tasksel
----
(FIXME: tasksel doesn't work like this)
== to document properly
== Installed software that makes jenkins.debian.net run
#missing: how jenkins was installed
apt-get install mtr-tiny dstat
apt-get install debootstrap sudo figlet graphviz apache2 python-yaml python-setuptools
apt-get install build-essential devscripts && apt-get build-dep python-jenkinsapi
a2enmod proxy
a2enmod proxy_http
* FIXME: how jenkins was installed + configured
* needed packages are listed in update_jdn.sh and which will also make sure they are installed
** update_jdn.sh is available in the git repo
* package configuration is kept in git and deployed by update_jdn.sh as well
== to backup
- backup: /etc /srv/jenkins /var/lib/jenkins/job/*/config.xml /var/lib/jenkins/userContent/
- mkdir /chroots ; chown jenkins.jenkins /chroots
- /etc/sudoers.d/jenkins
- /etc/squid/squid.conf
- /etc/apt/apt.conf.d/80proxy
- /etc/apache2/sites-enabled/000-default
== To backup
* /etc/.git
* /var/lib/jenkins/job/*/config.xml
* /var/lib/jenkins/config.xml as well as its plugins etc
* /srv/jenkins probably not
#/bin/bash
# Copyright 2012 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
echo
uptime
echo
......
Acquire::http::Proxy "http://localhost:3128";
This diff is collapsed.
jenkins ALL= NOPASSWD: /usr/sbin/debootstrap *, NOPASSWD: /usr/sbin/chroot /chroots/*, NOPASSWD: /bin/rm -rf /chroots/*, NOPASSWD: /bin/umount -l /chroots/*
# see https://wiki.jenkins-ci.org/display/JENKINS/Log+Parser+Plugin
ok /not really/
# match line starting with 'error ', case-insensitive
error /(?i)^error /
# list of warnings here...
warning /[Ww]arning/
warning /WARNING/
# create a quick access link to lines in the report containing 'INFO'
info /INFO/
#!/bin/bash
# Copyright 2012 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
# make sure needed directories exists
for directory in /srv/jenkins /chroots ; do
if [ ! -d $directory ] ; then
sudo mkdir $directory
sudo chown jenkins.jenkins $directory
fi
done
#
# install the heart of jenkins.debian.net
#
cp -r bin logparse /srv/jenkins/
cp -r userContent/* /var/lib/jenkins/userContent/
asciidoc -a numbered -a data-uri -a iconsdir=/etc/asciidoc/images/icons -a scriptsdir=/etc/asciidoc/javascripts -a imagesdir=./ -b html5 -a toc -a toclevels=4 -a icons -o about.html TODO && cp about.html /var/lib/jenkins/userContent/
#
# install packages we need
# (more or less grouped into more-then-nice-to-have, needed-while-things-are-new, needed)
#
sudo apt-get install vim screen less etckeeper mtr-tiny dstat devscripts \
build-essential python-setuptools \
debootstrap sudo figlet graphviz apache2 python-yaml
#
# deploy package configuration in /etc
#
sudo cp -r etc/* /
#
# more configuration than a simple cp can do
#
if [ ! -e /etc/apache2/mods-enabled/proxy.load ] ; then
sudo a2enmod proxy
sudo a2enmod proxy_http
fi
sudo chown root.root /etc/sudoers.d/jenkins ; sudo chmod 700 /etc/sudoers.d/jenkins
sudo ln -sf /etc/apache2/sites-available/jenkins.debian.net /etc/apache2/sites-enabled/000-default
sudo service apache2 reload
@charset "utf-8";
#top-panel {
background: url(title.png) 0 0 no-repeat; }
#top-panel td#login-field span a {
background: none; }
#top-panel td #searchform a {
background: none;
height: auto;
width: auto; }
#top-panel td > a {
background: url(title.png) 0 0 no-repeat;
display: block;
height: 34px;
width: 800px; //
margin: 10px 0 0 10px; //
}
#top-panel td > a img {
display: none; }
#main-table {
background-image: url(debian-swirl.png) !important;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment