From 4e57449db98bc038bc8fe5954af9c788e8aebea5 Mon Sep 17 00:00:00 2001 From: RolandBakunts Date: Tue, 17 Jan 2023 06:23:46 -0800 Subject: [PATCH] JenkinsFile docker configuration --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3bbf30af..790ea49a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,8 @@ pipeline { stage('pull request') { steps { script { - if(env.CHANGE_ID) { + if(env.BRANCH_NAME != 'main') { + sh "echo $env.BRANCH_NAME" sh "echo 'pull request'" } else if (env.BRANCH_NAME == 'main') { sh "echo 'main branch'"