JEnkins File merge instead of rebase
Some checks reported errors
andreas-personal/AndysAdguardHomeBlockList/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
andreas-personal/AndysAdguardHomeBlockList/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
47e5318560
commit
e07d7887bc
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -21,7 +21,7 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
sh '''
|
||||
git checkout main
|
||||
git checkout -b build-${BUILD_NUMBER}
|
||||
mkdir -p dist
|
||||
npm run compile
|
||||
git stash
|
||||
@ -38,11 +38,9 @@ pipeline {
|
||||
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||
]) {
|
||||
sh '''
|
||||
git rebase --abort || true
|
||||
git checkout main
|
||||
git pull --rebase
|
||||
git stash pop || true
|
||||
git add .
|
||||
git commit -m "Update Compiled Adblock List"
|
||||
git merge build-${BUILD_NUMBER} --no-ff -m "Merge build ${BUILD_NUMBER}"
|
||||
git push
|
||||
'''
|
||||
}
|
||||
|
Reference in New Issue
Block a user