OP#253 remove build stage rpm upload
This commit is contained in:
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@@ -132,25 +132,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('upload rpms') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'Jenkins-gitea',
|
||||
usernameVariable: 'GITEA_USER',
|
||||
passwordVariable: 'GITEA_TOKEN')]) {
|
||||
script {
|
||||
sh '''
|
||||
for rpm in rpms/*.rpm; do
|
||||
curl --user ${GITEA_USER}:${GITEA_TOKEN} \
|
||||
--upload-file keys/repository.key \
|
||||
https://gitea.confdroid.com/api/packages/confdroid/rpm/upload
|
||||
done
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('update repo') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
|
||||
Reference in New Issue
Block a user