blob: 833bcff5e642ec6b78485647acddbcdd97c436d6 [file] [log] [blame]
pipeline {
agent any
stages {
stage("Build") {
agent {
dockerfile true
}
steps {
sh 'make package'
stash name: "deb-files", includes: ".build/*.deb"
}
}
stage("Unittest") {
agent {
dockerfile true
}
steps {
sh 'echo "UNITTEST"'
}
}
stage("Repo Component") {
steps {
unstash "deb-files"
sh '''
mkdir -p pool/RO
mv .build/*.deb pool/RO/
mkdir -p dists/$RELEASE/unstable/RO/binary-amd64/
apt-ftparchive packages pool/RO > dists/$RELEASE/unstable/RO/binary-amd64/Packages
gzip -9fk dists/$RELEASE/unstable/RO/binary-amd64/Packages
'''
archiveArtifacts artifacts: "dists/**,pool/RO/*.deb"
}
}
}
}