38 lines
747 B
Groovy
38 lines
747 B
Groovy
// vim: set sw=4 ts=4 sts=4 et :
|
|
|
|
pipeline {
|
|
agent {
|
|
kubernetes {
|
|
yamlFile 'ci/podTemplate.yaml'
|
|
defaultContainer 'build'
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh 'make rpm'
|
|
}
|
|
}
|
|
|
|
stage('Publish') {
|
|
steps {
|
|
withCredentials([usernamePassword(
|
|
credentialsId: 'jenkins-packages',
|
|
usernameVariable: 'GITEA_USERNAME',
|
|
passwordVariable: 'GITEA_PASSWORD',
|
|
)]) {
|
|
sh 'make publish'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
archiveArtifacts '*.rpm'
|
|
}
|
|
}
|
|
|
|
}
|