Skip to content

Commit e574c8d

Browse files
committed
fix ci
1 parent 3f27681 commit e574c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/test.jenkins

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
node('Linux') {
44

55
boolean publishDocs = env.BRANCH_NAME.startsWith("release/2.")
6-
def targetBranch = env.CHANGE_BRANCH
6+
def targetBranch = env.CHANGE_BRANCH ? env.CHANGE_BRANCH : env.BRANCH_NAME
77

88
// We also have to clone conan sources for the sphinx autodoc extension
9-
def conanBranch = (targetBranch.startsWith("release/2.")) ? targetBranch : 'develop2'
9+
def conanBranch = targetBranch.startsWith("release/2.") ? targetBranch : 'develop2'
1010
def conan_repo_url = 'https://github.com/conan-io/conan.git'
1111

1212
echo "Docs target branch: ${targetBranch}"

0 commit comments

Comments
 (0)