File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,21 @@ echo "SHOULD_TRIGGER: $SHOULD_TRIGGER"
8080
8181if [[ " $SHOULD_TRIGGER " == " true" ]]; then
8282 EFFECTIVE_START_DATE=$( date -u -d " @$BUILD_TIME " +" %Y-%m-%dT%H:%M:%SZ" 2> /dev/null || date -u -r " $BUILD_TIME " +" %Y-%m-%dT%H:%M:%SZ" 2> /dev/null || echo " " )
83+
84+ # Use "master" branch for elasticsearch-performance-esbench-jdk when BUILDKITE_BRANCH is "main"
85+ TRIGGER_BRANCH=" $BUILDKITE_BRANCH "
86+ if [[ " $BUILDKITE_BRANCH " == " main" ]]; then
87+ TRIGGER_BRANCH=" master"
88+ fi
89+
8390 echo " Triggering performance-esbench-jdk for new jdk build $JDK_IDENTIFIER "
8491 cat << EOF | buildkite-agent pipeline upload
8592steps:
8693- trigger: elasticsearch-performance-esbench-jdk
8794 label: Triggering performance-esbench-jdk for new jdk build $JDK_IDENTIFIER
8895 async: true
8996 build:
90- branch: "$BUILDKITE_BRANCH "
97+ branch: "$TRIGGER_BRANCH "
9198 env:
9299 EFFECTIVE_START_DATE: "$EFFECTIVE_START_DATE "
93100 EXECUTION_MODE: "start-run"
You can’t perform that action at this time.
0 commit comments