File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4233,6 +4233,7 @@ functions:
42334233 PAPERTRAIL_SECRET_KEY : ${papertrail_secret_key}
42344234 EVERGREEN_TASK_ID : ${task_id}
42354235 EVERGREEN_EXECUTION : ${execution}
4236+ EVERGREEN_AUTHOR : ${author}
42364237 working_dir : src
42374238 shell : bash
42384239 script : |
@@ -4246,9 +4247,8 @@ functions:
42464247
42474248 # Set the release publisher
42484249 submitter=$(node -p 'JSON.parse(fs.readFileSync("packages/cli-repl/package.json")).releasePublisher')
4249- if [ -z "$submitter" ] || [ "$submitter" == "undefined" ]; then
4250- echo "releasePublisher is not set"
4251- exit 1
4250+ if [ -z "$submitter" ] || [ "$submitter" == "undefined" ] || [ "$submitter" == "null" ]; then
4251+ submitter="${EVERGREEN_AUTHOR}"
42524252 fi
42534253
42544254 echo "Setting version for papertrail to $tag, with product ${product} and submitter ${submitter}"
Original file line number Diff line number Diff line change @@ -878,6 +878,7 @@ functions:
878878 PAPERTRAIL_SECRET_KEY: ${papertrail_secret_key}
879879 EVERGREEN_TASK_ID: ${task_id}
880880 EVERGREEN_EXECUTION: ${execution}
881+ EVERGREEN_AUTHOR: ${author}
881882 working_dir: src
882883 shell: bash
883884 script: |
@@ -891,9 +892,8 @@ functions:
891892
892893 # Set the release publisher
893894 submitter=$(node -p 'JSON.parse(fs.readFileSync("packages/cli-repl/package.json")).releasePublisher')
894- if [ -z "$submitter" ] || [ "$submitter" == "undefined" ]; then
895- echo "releasePublisher is not set"
896- exit 1
895+ if [ -z "$submitter" ] || [ "$submitter" == "undefined" ] || [ "$submitter" == "null" ]; then
896+ submitter="${EVERGREEN_AUTHOR}"
897897 fi
898898
899899 echo "Setting version for papertrail to $tag, with product ${product} and submitter ${submitter}"
You can’t perform that action at this time.
0 commit comments