Browse Source

use fresh packages

main
Vítězslav Dvořák 3 months ago
parent
commit
7c16e4fdf7
  1. 155
      Jenkinsfile
  2. 19
      php-ease-fluentpdo.svg

155
Jenkinsfile

@ -0,0 +1,155 @@
#!groovy
pipeline {
agent none
options {
ansiColor('xterm')
copyArtifactPermission('*');
}
stages {
stage('debian-stable') {
agent {
docker { image 'vitexsoftware/debian:stable' }
}
steps {
dir('build/debian/package') {
checkout scm
buildPackage()
installPackages()
}
stash includes: 'dist/**', name: 'dist-buster'
}
post {
success {
archiveArtifacts 'dist/debian/'
copyArtifact()
}
}
}
stage('debian-testing') {
agent {
docker { image 'vitexsoftware/debian:testing' }
}
steps {
dir('build/debian/package') {
checkout scm
buildPackage()
installPackages()
}
stash includes: 'dist/**', name: 'dist-bullseye'
}
post {
success {
archiveArtifacts 'dist/debian/'
copyArtifact()
}
}
}
stage('ubuntu-trusty') {
agent {
docker { image 'vitexsoftware/ubuntu:stable' }
}
steps {
dir('build/debian/package') {
checkout scm
buildPackage()
installPackages()
}
stash includes: 'dist/**', name: 'dist-trusty'
}
post {
success {
archiveArtifacts 'dist/debian/'
copyArtifact()
}
}
}
stage('ubuntu-hirsute') {
agent {
docker { image 'vitexsoftware/ubuntu:testing' }
}
steps {
dir('build/debian/package') {
checkout scm
buildPackage()
installPackages()
}
stash includes: 'dist/**', name: 'dist-trusty'
}
post {
success {
archiveArtifacts 'dist/debian/'
copyArtifact()
}
}
}
}
}
def copyArtifact(){
step ([$class: 'CopyArtifact',
projectName: '${JOB_NAME}',
filter: "**/*.deb",
target: '/var/tmp/deb',
flatten: true,
selector: specific('${BUILD_NUMBER}')
]);
}
def buildPackage() {
def DIST = sh (
script: 'lsb_release -sc',
returnStdout: true
).trim()
def DISTRO = sh (
script: 'lsb_release -sd',
returnStdout: true
).trim()
def SOURCE = sh (
script: 'dpkg-parsechangelog --show-field Source',
returnStdout: true
).trim()
def VERSION = sh (
script: 'dpkg-parsechangelog --show-field Version',
returnStdout: true
).trim()
ansiColor('vga') {
echo '\033[42m\033[90mBuild debian package ' + SOURCE + ' v' + VERSION + ' for ' + DISTRO + '\033[0m'
}
def VER = VERSION + '~' + DIST + '~' + env.BUILD_NUMBER
//Buster problem: Can't continue: dpkg-parsechangelog is not new enough(needs to be at least 1.17.0)
//
// debianPbuilder additionalBuildResults: '',
// components: '',
// distribution: DIST,
// keyring: '',
// mirrorSite: 'http://deb.debian.org/debian/',
// pristineTarName: ''
sh 'dch -b -v ' + VER + ' "' + env.BUILD_TAG + '"'
sh 'sudo apt-get update'
sh 'debuild-pbuilder -i -us -uc -b'
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; mv ../' + SOURCE + '*_' + VER + '_*.deb ../' + SOURCE + '*_' + VER + '_*.changes ../' + SOURCE + '*_' + VER + '_*.build $WORKSPACE/dist/debian/'
}
def installPackages() {
sh 'cd $WORKSPACE/dist/debian/ ; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz; cd $WORKSPACE'
sh 'echo "deb [trusted=yes] file:///$WORKSPACE/dist/debian/ ./" | sudo tee /etc/apt/sources.list.d/local.list'
sh 'IFS="\n\b"; for package in `ls $WORKSPACE/dist/debian/ | grep .deb | awk -F_ \'{print \$1}\'` ; do sudo DEBIAN_FRONTEND=noninteractive apt-get -y install $package ; done;'
}

19
php-ease-fluentpdo.svg

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Creator: CorelDRAW -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
@ -18,10 +16,10 @@
version="1.1"
id="svg22"
sodipodi:docname="php-ease-fluentpdo.svg"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><metadata
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"><metadata
id="metadata26"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><sodipodi:namedview
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
@ -31,16 +29,17 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-height="1148"
id="namedview24"
showgrid="false"
inkscape:zoom="0.55625733"
inkscape:cx="608.34576"
inkscape:cx="576.8855"
inkscape:cy="260.87278"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-x="3840"
inkscape:window-y="28"
inkscape:window-maximized="1"
inkscape:current-layer="svg22" /><defs
inkscape:current-layer="svg22"
inkscape:document-rotation="0" /><defs
id="defs4"><style
type="text/css"
id="style2"><![CDATA[
@ -1552,4 +1551,4 @@
inkscape:connector-curvature="0"
style="fill:#00546b;stroke-width:0.48453134"
d="m 142.49167,378.29496 c -6.7439,-0.16817 -11.97054,0.50665 -16.35424,2.36079 -1.26448,0.50559 -3.28783,0.50612 -3.45655,2.10748 0.67481,0.67482 0.75892,1.7706 1.34908,2.69767 1.01224,1.68544 2.78179,3.96215 4.38366,5.14255 1.77009,1.34857 3.54066,2.69713 5.39482,3.87753 3.28788,2.02339 6.99721,3.20325 10.2005,5.22663 1.85522,1.17932 3.70879,2.69767 5.56353,3.96215 0.92758,0.67375 1.51726,1.77008 2.69767,2.19157 v -0.25283 c -0.5902,-0.75887 -0.75892,-1.85465 -1.34859,-2.69765 -0.84246,-0.84298 -1.68597,-1.60189 -2.52896,-2.44487 -2.4449,-3.28735 -5.47942,-6.1537 -8.76726,-8.51396 -2.69714,-1.85469 -8.59859,-4.38365 -9.6944,-7.50282 0,0 -0.0846,-0.0841 -0.16872,-0.16817 1.85469,-0.16871 4.04623,-0.84299 5.81685,-1.34911 2.86639,-0.7589 5.47946,-0.59019 8.42988,-1.34857 1.34854,-0.3374 2.69767,-0.75889 4.04627,-1.18039 v -0.75837 c -1.51678,-1.51781 -2.61308,-3.54066 -4.21499,-4.97385 -4.299,-3.7099 -9.02008,-7.33412 -13.90929,-10.36868 -2.61362,-1.68597 -5.98557,-2.78229 -8.76731,-4.21494 -1.01112,-0.50665 -2.69768,-0.7589 -3.28735,-1.6019 -1.5178,-1.85468 -2.36078,-4.29902 -3.45655,-6.49113 -2.44378,-4.63695 -4.80514,-9.77845 -6.91262,-14.66769 -1.51672,-3.28787 -2.44431,-6.57576 -4.299,-9.61026 -8.68265,-14.33081 -18.12428,-23.0135 -32.62378,-31.528 -3.11918,-1.77007 -6.82797,-2.52897 -10.79013,-3.45604 -2.10693,-0.0846 -4.21493,-0.25279 -6.32245,-0.33741 -1.34855,-0.5902 -2.69768,-2.19156 -3.87805,-2.95046 -4.80407,-3.03508 -17.19669,-9.60976 -20.73731,-0.92708 -2.27618,5.47945 3.37195,10.87423 5.31071,13.65651 1.43373,1.93878 3.28783,4.13032 4.29953,6.32244 0.59021,1.43212 0.75839,2.95046 1.3486,4.46773 1.34908,3.7083 2.61303,7.83967 4.38365,11.29628 0.92759,1.77007 1.93876,3.62475 3.11917,5.22609 0.67428,0.92707 1.85411,1.3491 2.10747,2.86637 -1.17988,1.68598 -1.26448,4.21495 -1.93934,6.32244 -3.03452,9.52564 -1.85415,21.32752 2.4449,28.3242 1.34855,2.10694 4.55232,6.74444 8.85142,4.97385 3.79344,-1.51728 2.95045,-6.32243 4.04622,-10.53738 0.25332,-1.01223 0.0846,-1.68597 0.59021,-2.36026 4.4e-4,0.0841 0,0.16871 0,0.16871 1.18037,2.36025 2.36025,4.63645 3.45602,6.99667 2.61361,4.13032 7.16544,8.42989 10.95884,11.29629 2.02394,1.51673 3.62531,4.13033 6.15422,5.05793 v -0.25333 h -0.16866 c -0.50614,-0.75889 -1.26448,-1.09578 -1.93881,-1.68597 -1.51725,-1.51727 -3.20377,-3.37196 -4.3836,-5.05793 -3.54013,-4.72107 -6.65983,-9.94716 -9.44158,-15.34248 -1.34859,-2.61305 -2.52896,-5.47945 -3.62477,-8.09249 -0.5061,-1.01223 -0.5061,-2.52896 -1.34909,-3.03454 -1.26447,1.85414 -3.11863,3.45604 -4.04622,5.73222 -1.60084,3.62474 -1.77009,8.09249 -2.36029,12.7289 -0.33686,0.0846 -0.16867,0 -0.33738,0.16871 -2.69715,-0.67483 -3.62479,-3.45605 -4.63648,-5.81685 -2.52897,-5.98499 -2.95046,-15.5953 -0.75834,-22.50736 0.59016,-1.7706 3.11916,-7.33412 2.10746,-9.0201 -0.50561,-1.60189 -2.19211,-2.52896 -3.11917,-3.79344 -1.09577,-1.6019 -2.27618,-3.62475 -3.03457,-5.39532 -2.02335,-4.72054 -3.03506,-9.94717 -5.22659,-14.66825 -1.0117,-2.19209 -2.78179,-4.46773 -4.21499,-6.49059 -1.60132,-2.27617 -3.37195,-3.87806 -4.63643,-6.57574 -0.42096,-0.92708 -1.0117,-2.44435 -0.33743,-3.45605 0.16872,-0.67428 0.50561,-0.92707 1.18042,-1.09578 1.09577,-0.9276 4.21494,0.25279 5.3107,0.75837 3.11917,1.26395 5.7322,2.44489 8.34581,4.21495 1.17984,0.84299 2.44432,2.44488 3.96163,2.86638 h 1.77057 c 2.69768,0.58966 5.73225,0.1687 8.26122,0.92707 4.46824,1.43266 8.51394,3.54066 12.13925,5.81684 11.04349,6.99668 20.1471,16.94438 26.30138,28.83034 1.0117,1.93823 1.43266,3.70936 2.36024,5.73222 1.77063,4.13086 3.96216,8.3458 5.73225,12.39205 1.77005,3.96161 3.45602,8.0084 5.98498,11.29628 1.26501,1.76953 6.32241,2.69713 8.59859,3.62474 1.68598,0.75837 4.29954,1.43319 5.8168,2.36027 2.86586,1.76952 5.73225,3.79345 8.42992,5.73222 1.34909,1.01116 5.56349,3.11916 5.81685,4.80461 z"
id="path1640" /></svg>
id="path1640" /></svg>
Loading…
Cancel
Save