Jenkins scripted multibranch pipeline

This commit is contained in:
Dominik Chilla 2019-06-14 21:32:18 +02:00
parent ac180b2145
commit db1c408c58

View File

@ -1,6 +1,12 @@
node {
def dockerImage
stage('Clone repository') {
sh '/usr/bin/env'
/* Let's make sure we have the repository cloned to our workspace */
checkout scm
}
stage('Build image') {
sh '/usr/bin/env'
/* Multi-Branch Pipeline works with env.BRANCH_NAME*/