2020-12-21 11:53:31 -05:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
2020-12-21 14:32:06 -05:00
|
|
|
filename 'Dockerfile'
|
2020-12-21 11:53:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2020-12-21 14:54:48 -05:00
|
|
|
// Build
|
2020-12-21 15:11:17 -05:00
|
|
|
sh 'cd /app; ./build.sh'
|
2020-12-21 14:54:48 -05:00
|
|
|
// Copy Artifacts
|
2020-12-21 14:50:41 -05:00
|
|
|
sh 'mkdir out; cp /out/*.deb out'
|
2020-12-21 11:53:31 -05:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
2020-12-21 14:50:41 -05:00
|
|
|
archiveArtifacts artifacts: 'out/*.deb', fingerprint: true
|
2020-12-21 11:53:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|