Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Tomasz Burewicz 2020-04-03 09:31:01 +00:00
parent 2405922822
commit d1473369df

16
Jenkinsfile vendored
View File

@ -3,8 +3,22 @@ pipeline {
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
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.BRANCH_NAME}"
}
}
}