rsemcs/Jenkinsfile
Harrison Deng a2df6a26eb Removed version tagging.
Potentially to be reimplemented in the future.
2022-01-11 14:14:26 -06:00

42 lines
1.4 KiB
Groovy

pipeline {
agent any
stages {
stage('setup') {
steps {
sh 'git checkout delta'
sh 'git reset --hard origin/delta'
sshagent(['2e60e630-b240-4c78-87ce-cb2c33d70180']) {
sh 'git fetch --prune --prune-tags'
sh 'git pull --force origin delta'
}
sh 'git clean -fd'
}
}
stage('test') {
steps {
sh './testrun.sh'
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
sh 'git reset --hard'
}
}
stage('queue') {
steps {
sh 'git checkout master'
sh 'git reset --hard origin/master'
sshagent(['2e60e630-b240-4c78-87ce-cb2c33d70180']) {
sh 'git fetch --prune --prune-tags'
sh 'git pull --force origin master'
}
sh 'git clean -fd'
sh 'git merge --strategy-option theirs origin/delta'
sshagent(['2e60e630-b240-4c78-87ce-cb2c33d70180']) {
sh 'git push origin master'
sh 'git push origin --tags'
}
}
}
}
}