OP#253 add first Jenkins staget
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -57,7 +57,8 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('upload GPG Key') {
|
||||
withCredentials([usernamePassword(
|
||||
steps {
|
||||
withCredentials([usernamePassword(
|
||||
credentialsId: 'Jenkins-gitea',
|
||||
usernameVariable: 'GITEA_USER',
|
||||
passwordVariable: 'GITEA_TOKEN')]) {
|
||||
@@ -67,9 +68,10 @@ pipeline {
|
||||
--upload-file keys/keys/RPM-GPG-KEY-public.asc \
|
||||
https://gitea.confdroid.com/api/packages/confdroid/rpm.repo
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('update repo') {
|
||||
steps {
|
||||
@@ -80,9 +82,9 @@ pipeline {
|
||||
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||
git push origin HEAD:master
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Mirror to Gitea') {
|
||||
steps {
|
||||
|
||||
Reference in New Issue
Block a user