1
0
Fork 0
dch-selinux/ci/Jenkinsfile

41 lines
810 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') {
when {
branch 'main'
}
steps {
withCredentials([usernamePassword(
credentialsId: 'jenkins-packages',
usernameVariable: 'GITEA_USERNAME',
passwordVariable: 'GITEA_PASSWORD',
)]) {
sh 'make publish'
}
}
}
}
post {
success {
archiveArtifacts '*.rpm'
}
}
}