2 docker.image('gstreamer/build-base-ubuntu:latest').inside {
4 env.OUTPREFIX="${env.WORKSPACE}/../output/${params.build_tag}/linux_x86_64/"
7 // FIXME: Only checkout the manifest and not all dependencies ?
8 checkout([$class: 'RepoScm',
9 manifestRepositoryUrl:'git+ssh://git.arracacha.collabora.co.uk/git/gst-manifest.git',
10 manifestBranch:"refs/tags/${params.build_tag}",
18 sh "find ../output -maxdepth 1 -ctime +1 | xargs rm -Rf"
19 sh "cd .repo/manifests/; git checkout ${params.build_tag}; cd ../.."
20 sh "rm -Rf ./workdir/sources/linux_x86_64/"
22 sh "rm -Rf ./workdir/temp; mkdir -p ./workdir/temp"
23 sh "rm -Rf ./workdir/tmp*"
25 // Create custom configuration file
26 sh "./gst-ci-scripts/manifest2cerbero.py .repo/manifests/default.xml ./cerbero/config/linux.config --output localconf.cbc"
27 sh '''echo "home_dir = \\"$WORKSPACE/workdir\\"" >> localconf.cbc'''
28 sh '''echo "logs = \\"$OUTPREFIX/logs\\"" >> localconf.cbc'''
29 sh './cerbero/cerbero-uninstalled -c localconf.cbc show-config'
33 sh './cerbero/cerbero-uninstalled -c localconf.cbc bootstrap'
34 sh 'rm -Rf ./workdir/sources/build-tools/'
38 sh './cerbero/cerbero-uninstalled -c localconf.cbc fetch-package --reset-rdeps --full-reset gstreamer-1.0'
42 sh './cerbero/cerbero-uninstalled -c localconf.cbc package gstreamer-1.0'
47 sh 'find ../output -maxdepth 1 -ctime +1 | xargs rm -Rf'
49 // FIXME: IRC Notification