diff --git a/Jenkinsfile b/Jenkinsfile index 880c6ed..eba799c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,11 @@ +def getBranch() { + if (env.BRANCH_NAME != null && !env.BRANCH_NAME.isEmpty() ) { + return env.BRANCH_NAME + } else { + return 'develop' + } +} + void checkout_project() { checkout([ $class: 'GitSCM',