Publishing packages
parent
02542d23e1
commit
6ce1f99a3e
|
@ -23,9 +23,20 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
composer require symfony/flex
|
composer require symfony/flex
|
||||||
dpkg-buildpackage -us -uc
|
dpkg-buildpackage -us -uc
|
||||||
|
sh 'mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/'
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
archiveArtifacts artifacts: 'artifacts/*.deb', fingerprint: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Publish to Debian Repository') {
|
||||||
|
agent { label 'debian-repo' }
|
||||||
|
steps {
|
||||||
|
copyArtifacts projectName: env.JOB_NAME, filter: 'artifacts/*.deb', fingerprintArtifacts: true, target: 'debian-repo/'
|
||||||
|
sh '''
|
||||||
|
aptly repo add opengsnys-devel debian-repo/*.deb
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue