Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Tomasz Burewicz 2020-04-03 09:36:35 +00:00
parent ddf24768f1
commit eeec483d51

16
Jenkinsfile vendored
View File

@ -1,25 +1,11 @@
pipeline {
agent any
stages {
stage('Stage 1') {
stage('Checkout') {
steps {
sh "git checkout -f ${env.master}"
}
}
stage('Merge with master') {
when {
not {
branch 'master'
}
}
agent {
label "master"
}
steps {
sh 'git checkout -f origin/master'
sh "git merge --ff-only ${env.master}"
}
}
}
}