Zaktualizuj 'Jenkinsfile'
This commit is contained in:
parent
2405922822
commit
d1473369df
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user