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 {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
git checkout main
|
git checkout -b build-${BUILD_NUMBER}
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
npm run compile
|
npm run compile
|
||||||
git stash
|
git stash
|
||||||
@ -38,11 +38,9 @@ pipeline {
|
|||||||
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token')
|
||||||
]) {
|
]) {
|
||||||
sh '''
|
sh '''
|
||||||
git rebase --abort || true
|
git checkout main
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
git stash pop || true
|
git merge build-${BUILD_NUMBER} --no-ff -m "Merge build ${BUILD_NUMBER}"
|
||||||
git add .
|
|
||||||
git commit -m "Update Compiled Adblock List"
|
|
||||||
git push
|
git push
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user