OP#253 add build stage prometheus rpm
This commit is contained in:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -123,13 +123,31 @@ pipeline {
|
||||
-C build/prometheus \
|
||||
-f
|
||||
"""
|
||||
|
||||
// list directory
|
||||
sh "ls -alh"
|
||||
// cleanup
|
||||
sh "rm -rf build/prometheus prometheus.tar.gz prometheus-${version}.linux-amd64"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('upload rpms') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'Jenkins-gitea',
|
||||
usernameVariable: 'GITEA_USER',
|
||||
passwordVariable: 'GITEA_TOKEN')]) {
|
||||
script {
|
||||
sh '''
|
||||
curl --user ${GITEA_USER}:${GITEA_TOKEN} \
|
||||
--upload-file keys/repository.key \
|
||||
https://gitea.confdroid.com/api/packages/confdroid/rpm/upload
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('update repo') {
|
||||
steps {
|
||||
|
||||
Reference in New Issue
Block a user