@@ -3012,16 +3012,18 @@ tasks:
3012
3012
content_type : application/gzip
3013
3013
display_name : Binaries
3014
3014
3015
- - command : shell.exec
3015
+ - command : expansions.write
3016
+ params :
3017
+ file : expansions.yml
3018
+ - command : subprocess.exec
3016
3019
type : test
3017
3020
params :
3018
- working_dir : src
3019
- shell : bash
3020
- script : |
3021
- set -o errexit
3022
- set -o verbose
3023
- ${activate_virtualenv}
3024
- $python buildscripts/idl/gen_all_feature_flag_list.py --import-dir src --import-dir src/mongo/db/modules/enterprise/src
3021
+ binary : bash
3022
+ args :
3023
+ - " src/evergreen/gen_feature_flags.sh"
3024
+ env :
3025
+ python : ${python}
3026
+ workdir : ${workdir}
3025
3027
3026
3028
- command : archive.targz_pack
3027
3029
params :
@@ -3150,13 +3152,17 @@ tasks:
3150
3152
3151
3153
- name : libdeps_graph_linting
3152
3154
commands :
3153
- - command : shell.exec
3155
+ - command : expansions.write
3154
3156
params :
3155
- working_dir : src
3156
- shell : bash
3157
- script : |
3158
- ${activate_virtualenv}
3159
- python -m pip install -r etc/pip/libdeps-requirements.txt
3157
+ file : expansions.yml
3158
+ - command : subprocess.exec
3159
+ params :
3160
+ binary : bash
3161
+ args :
3162
+ - " src/evergreen/libdeps_setup.sh"
3163
+ env :
3164
+ python : ${python}
3165
+ workdir : ${workdir}
3160
3166
3161
3167
- func : " scons compile"
3162
3168
vars :
@@ -3168,19 +3174,14 @@ tasks:
3168
3174
targets :
3169
3175
generate-libdeps-graph
3170
3176
3171
- - command : shell .exec
3177
+ - command : subprocess .exec
3172
3178
params :
3173
- working_dir : src
3174
- shell : bash
3175
- script : |
3176
- set -o errexit
3177
- set -o verbose
3178
-
3179
- ${activate_virtualenv}
3180
- GRAPH_FILE=$(find build -name "libdeps.graphml")
3181
- python buildscripts/libdeps/gacli.py --graph-file $GRAPH_FILE > results.txt
3182
- gzip $GRAPH_FILE
3183
- mv $GRAPH_FILE.gz .
3179
+ binary : bash
3180
+ args :
3181
+ - " src/evergreen/libdeps_run.sh"
3182
+ env :
3183
+ python : ${python}
3184
+ workdir : ${workdir}
3184
3185
3185
3186
- command : s3.put
3186
3187
params :
@@ -3370,42 +3371,17 @@ tasks:
3370
3371
3371
3372
- name : embedded_sdk_build_cdriver
3372
3373
commands :
3373
- - command : shell.exec
3374
+ - command : expansions.write
3374
3375
params :
3375
- shell : bash
3376
- script : |
3377
- set -o errexit
3378
- set -o verbose
3379
-
3380
- VERSION=${version}
3381
- WORKDIR=${workdir}
3382
-
3383
- # build in a different directory then we run tests so that we can verify that the linking
3384
- # of tests are not relying any built in absolute paths
3385
- FINAL_PREFIX=$WORKDIR/src/build/mongo-embedded-sdk-$VERSION
3386
- BUILD_PREFIX=$FINAL_PREFIX-tmp
3387
-
3388
- rm -rf mongo-c-driver
3389
-
3390
- # NOTE: If you change the C Driver version here, also change the substitution in the CocoaPod podspec below in the apple builder.
3391
- git clone --branch r1.13 --depth 1 https://github.com/mongodb/mongo-c-driver.git
3392
- cd mongo-c-driver
3393
-
3394
- # Fixup VERSION so we don't end up with -dev on it. Remove this once we are building a stable version and CDRIVER-2861 is resolved.
3395
- cp -f VERSION_RELEASED VERSION_CURRENT
3396
-
3397
- trap "cat CMakeFiles/CMakeOutput.log" EXIT
3398
- export ${compile_env|}
3399
- ${cmake_path|/opt/cmake/bin/cmake} -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX -DENABLE_SHM_COUNTERS=OFF -DENABLE_SNAPPY=OFF -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_TESTS=OFF -DENABLE_EXAMPLES=OFF -DENABLE_STATIC=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=${cdriver_cmake_osx_deployment_target|} ${cdriver_cmake_flags}
3400
- trap - EXIT # cancel the previous trap '...' EXIT
3401
- make install VERBOSE=1
3402
-
3403
- # TODO: Remove this when we upgrade to a version of the C driver that has CDRIVER-2854 fixed.
3404
- mkdir -p $BUILD_PREFIX/share/doc/mongo-c-driver
3405
- cp COPYING $BUILD_PREFIX/share/doc/mongo-c-driver
3406
- cp THIRD_PARTY_NOTICES $BUILD_PREFIX/share/doc/mongo-c-driver
3407
-
3408
- mv $BUILD_PREFIX $FINAL_PREFIX
3376
+ file : expansions.yml
3377
+ - command : subprocess.exec
3378
+ params :
3379
+ binary : bash
3380
+ args :
3381
+ - " src/evergreen/embedded_sdk_build_cdriver.sh"
3382
+ env :
3383
+ python : ${python}
3384
+ workdir : ${workdir}
3409
3385
3410
3386
- name : embedded_sdk_install_dev
3411
3387
commands :
@@ -3429,24 +3405,17 @@ tasks:
3429
3405
3430
3406
- name : embedded_sdk_s3_put
3431
3407
commands :
3432
- # Not using archive.targz_pack here because I can't get it to work.
3433
- - command : shell.exec
3408
+ - command : expansions.write
3434
3409
params :
3435
- working_dir : " src/build"
3436
- shell : bash
3437
- script : |
3438
- set -o errexit
3439
- set -o verbose
3440
-
3441
- cat <<EOF > mongo-embedded-sdk-${version}/README-Licenses.txt
3442
- The software accompanying this file is Copyright (C) 2018 MongoDB, Inc. and
3443
- is licensed to you on the terms set forth in the following files:
3444
- - mongo-c-driver: share/doc/mongo-c-driver/COPYING
3445
- - mongo_embedded: share/doc/mongo_embedded/LICENSE-Embedded.txt
3446
- - mongoc_embedded: share/doc/mongo_embedded/LICENSE-Embedded.txt
3447
- EOF
3448
-
3449
- tar cfvz embedded-sdk.tgz mongo-embedded-sdk-${version}
3410
+ file : expansions.yml
3411
+ - command : subprocess.exec
3412
+ params :
3413
+ binary : bash
3414
+ args :
3415
+ - " src/evergreen/embedded_sdk_s3_tar.sh"
3416
+ env :
3417
+ python : ${python}
3418
+ workdir : ${workdir}
3450
3419
3451
3420
# Upload it so we can download from EVG.
3452
3421
- command : s3.put
@@ -3478,16 +3447,18 @@ tasks:
3478
3447
3479
3448
- name : embedded_sdk_tests_s3_put
3480
3449
commands :
3481
- # Not using archive.targz_pack here because I can't get it to work.
3482
- - command : shell.exec
3450
+ - command : expansions.write
3483
3451
params :
3484
- working_dir : " src/build"
3485
- shell : bash
3486
- script : |
3487
- set -o errexit
3488
- set -o verbose
3489
-
3490
- tar cfvz embedded-sdk-tests.tgz mongo-embedded-sdk-${version}
3452
+ file : expansions.yml
3453
+ - command : subprocess.exec
3454
+ type : test
3455
+ params :
3456
+ binary : bash
3457
+ args :
3458
+ - " src/evergreen/embedded_sdk_s3_tar.sh"
3459
+ env :
3460
+ python : ${python}
3461
+ workdir : ${workdir}
3491
3462
3492
3463
# Upload it so we can download from EVG.
3493
3464
- command : s3.put
@@ -7101,36 +7072,27 @@ tasks:
7101
7072
patchable : false
7102
7073
commands :
7103
7074
- func : " do non-compile setup"
7104
- - command : shell.exec
7075
+ - command : expansions.write
7076
+ params :
7077
+ file : expansions.yml
7078
+ - command : subprocess.exec
7105
7079
type : setup
7106
7080
params :
7107
- working_dir : src
7081
+ binary : bash
7108
7082
silent : true
7109
- shell : bash
7110
- script : |
7111
- # Create the Evergreen API credentials
7112
- cat > .restconfig.json <<END_OF_CREDS
7113
- {
7114
- "baseurl": "${blackduck_url}",
7115
- "username": "${blackduck_username}",
7116
- "password": "${blackduck_password}",
7117
- "debug": false,
7118
- "insecure" : false
7119
- }
7120
- END_OF_CREDS
7121
- - command : shell.exec
7122
- type : test
7083
+ args :
7084
+ - " src/evergreen/blackduck_setup.sh"
7085
+ env :
7086
+ python : ${python}
7087
+ workdir : ${workdir}
7088
+ - command : subprocess.exec
7123
7089
params :
7124
- working_dir : src/
7125
- shell : bash
7126
- script : |
7127
- set -o errexit
7128
- set -o verbose
7129
-
7130
- # activate the virtualenv if it has been set up
7131
- ${activate_virtualenv}
7132
-
7133
- python buildscripts/blackduck_hub.py -v scan_and_report --build_logger=mci.buildlogger --build_logger_task_id=${task_id} --report_file=report.json
7090
+ binary : bash
7091
+ args :
7092
+ - " src/evergreen/blackduck_hub.sh"
7093
+ env :
7094
+ python : ${python}
7095
+ workdir : ${workdir}
7134
7096
7135
7097
- name : tla_plus
7136
7098
commands :
@@ -7195,18 +7157,17 @@ tasks:
7195
7157
task_compile_flags : >-
7196
7158
--separate-debug
7197
7159
--legacy-tarball
7198
- - command : shell.exec
7160
+ - command : expansions.write
7199
7161
params :
7200
- working_dir : src
7201
- shell : bash
7202
- script : |
7203
- set -o errexit
7204
- set -o verbose
7205
-
7206
- if [ $(find . -name mongocryptd${exe} | wc -l) -eq 1 ] ; then
7207
- # Validate that this build_variant is listed as a known enterprise task for mongocryptd
7208
- PATH=$PATH:$HOME $python ../buildscripts/validate_mongocryptd.py --variant "${build_variant}" ../etc/evergreen.yml
7209
- fi
7162
+ file : expansions.yml
7163
+ - command : subprocess.exec
7164
+ params :
7165
+ binary : bash
7166
+ args :
7167
+ - " src/evergreen/package.sh"
7168
+ env :
7169
+ python : ${python}
7170
+ workdir : ${workdir}
7210
7171
- command : s3.put
7211
7172
params :
7212
7173
aws_key : ${aws_key}
0 commit comments