Merge remote-tracking branch 'origin/delta'
This commit is contained in:
commit
935cc3d6a7
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -1,19 +1,24 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('setup') {
|
stage('startup and shutdown check') {
|
||||||
steps {
|
|
||||||
sh 'git checkout delta'
|
|
||||||
sh 'git reset --hard origin/delta'
|
|
||||||
sh 'git clean -fd'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('test') {
|
|
||||||
steps {
|
steps {
|
||||||
sh './testrun.sh'
|
sh './testrun.sh'
|
||||||
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||||
sh 'git reset --hard'
|
sh 'git reset --hard'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('queue') {
|
||||||
|
when {
|
||||||
|
branch '**/delta'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '359ebf7c-e2b9-45ec-992c-ff8d5549deb6', url: 'git@dev.sys.reslate.xyz:ydeng/rsemcs.git']]])
|
||||||
|
sh 'git merge --strategy-option theirs origin/delta'
|
||||||
|
sshagent(['359ebf7c-e2b9-45ec-992c-ff8d5549deb6']) {
|
||||||
|
sh 'git push origin master'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user