Unverified Commit cf70f9ce authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

fix: DO-701 Not null and not empty condition

Showing with 1 addition and 2 deletions
+1 -2
......@@ -20,8 +20,7 @@ def call(Map pipelineParams) {
error 'Please resolve errors and rerun..'
}
def checkDir = new File('../private')
println params.private_branch
if(params.private_branch != null || params.private_branch != "")
if(params.private_branch != null && params.private_branch != "")
env.private_repo_branch = params.private_branch
if(!checkDir.exists())
checkout scm: [$class: 'GitSCM', branches: [[name: private_repo_branch]], extensions: [[$class: 'GitLFSPull'], [$class: 'CloneOption', depth: 1, noTags: true, reference: '', shallow: true]], userRemoteConfigs: [[credentialsId: private_repo_credentials, url: private_repo_url]]]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment