From db1c408c58dcf25333ad2379d20423d05a91278a Mon Sep 17 00:00:00 2001 From: Dominik Chilla Date: Fri, 14 Jun 2019 21:32:18 +0200 Subject: [PATCH] Jenkins scripted multibranch pipeline --- Jenkinsfile.scripted.multibranch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile.scripted.multibranch b/Jenkinsfile.scripted.multibranch index ff5f6af..3d16e36 100644 --- a/Jenkinsfile.scripted.multibranch +++ b/Jenkinsfile.scripted.multibranch @@ -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*/