An open API service indexing awesome lists of open source software.

https://github.com/valtri/jenkins-scripts

Initial attempts to cleanup packaging scripts used at CESNET.
https://github.com/valtri/jenkins-scripts

Last synced: 8 months ago
JSON representation

Initial attempts to cleanup packaging scripts used at CESNET.

Awesome Lists containing this project

README

          

# Jenkins scripts

Jenkins helper build scripts. The main script is **pkg-build-mock**.

## launch-slave

Script to launch Jenkins slave on the host, for Jenkins master only.

Example:

/var/lib/jenkins/scripts/launch-slave jenkins myriad19.zcu.cz /var/lib/jenkins

## pkg-build-copr

Build rpm package in COPR buildsystem. copr-cli package needs to be installed and credentials setup.

## pkg-build-mock

Script to build binary packages from prepared source packages in chroot
environment.

Local build and local external repositories are supported.

Example:

pkg-build-mock -p debian-8-x86_64 --clean
pkg-build-mock -p debian-8-x86_64 --add cache/*.changes
pkg-build-mock -p debian-8-x86_64 package.dsc

pkg-build-mock -p epel-7-x86_64 --clean
pkg-build-mock -p epel-7-x86_64 --add cache/*.rpm
pkg-build-mock -p epel-7-x86_64 package.spec

## pkg-buildsrc-deb

Make source package from debian/ directory and source tarball.

## pkg-buildsrc-rpm

Make source package from .spec file and source tarball.

## pkg-bump

Set version of the source package.

## Example

name='pOCCI'
rpmname='python-pOCCI'
debname='python-pocci'
version=`sed -e "s/.*=\s*'\(.*\)'.*/\1/" pOCCI/version.py`
commit=${commit:-`git rev-parse HEAD`}

# source tarball
wget https://github.com/CESNET/${name}/archive/${commit}/${name}-${commit}.tar.gz

# source rpm
git clone http://scientific.zcu.cz/git/packaging-rpm-pOCCI.git && cd packaging-rpm-pOCCI
${HOME}/scripts/pkg-bump ${rpmname} ${version} ${release}.
${HOME}/scripts/pkg-buildsrc-rpm ${rpmname} ${version} ${name}-${commit}.tar.gz *.diff
mv *.src.rpm ..
cd ..

# source deb
git clone http://scientific.zcu.cz/git/packaging-deb-pOCCI.git && cd packaging-deb-pOCCI
${HOME}/scripts/pkg-bump ${debname} ${version} ${release}.
${HOME}/scripts/pkg-buildpkg-deb ${debname} ${version} ${name}-${commit}.tar.gz
mv *.dsc *.debian.tar.* *.orig.tar.gz ..
cd ..

# COPR (let's not fail here due to chained builds)
${HOME}/scripts/pkg-build-copr *.src.rpm || :